Displaying 1 result from an estimated 1 matches for "can_map".
Did you mean:
c2s_map
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
...Alberta.1 132
and the data set "tract" is the map data without the "Number" variable.
I looked into working this out from by researching the geom_map function here: http://ggplot2.tidyverse.org/reference/geom_map.html
my code looks like this:
# get the raw map data
can_map <- getData('GADM', country = "CAN", level = 1) # download map level with provinces
tract <- fortify(can_map, region = "NAME_1") # transforms data from shapefiles into a dataframe that ggplot can understand, from http://www.kevjohnson.org/making-maps-in-r/
# create...