Displaying 1 result from an estimated 1 matches for "kids_map".
Did you mean:
gid_map
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
...he data by province
kids_province_sums <- aggregate(.~Province, data = kids_province_data, sum)
# join the data to the map
names(tract)[6] <- "region"
names(kids_province_sums)[1] <- "region"
by_province <- left_join(tract, kids_province_sums)
# create the data map
kids_map <- ggplot(by_province, aes(map_id = region)) + #plots the map in by_province separating by region
geom_map(aes(fill = Number), #generates aestheticsa for the plot
map = tract, #takes th...