mirror of
https://github.com/kidwellj/mapping_environmental_action.git
synced 2024-11-01 07:52:21 +00:00
added note re fortify issues
This commit is contained in:
parent
136377a095
commit
f2947b31d6
|
@ -283,6 +283,7 @@ Perhaps the first important question to ask of these groups is, where are they?
|
||||||
# plot simple choropleth map using ECS data points, as here: https://www.r-graph-gallery.com/327-chloropleth-map-from-geojson-with-ggplot2/
|
# plot simple choropleth map using ECS data points, as here: https://www.r-graph-gallery.com/327-chloropleth-map-from-geojson-with-ggplot2/
|
||||||
|
|
||||||
admin_lev1_fortified <- fortify(admin_lev1)
|
admin_lev1_fortified <- fortify(admin_lev1)
|
||||||
|
# TODO: resolve issues with dropped columns - note https://stackoverflow.com/questions/22096787/how-keep-information-from-shapefile-after-fortify
|
||||||
admin_lev1_fortified <- join(admin_lev1_fortified,admin_lev1@data$ecs_count, by="id")
|
admin_lev1_fortified <- join(admin_lev1_fortified,admin_lev1@data$ecs_count, by="id")
|
||||||
|
|
||||||
# draw map using sp data
|
# draw map using sp data
|
||||||
|
|
Loading…
Reference in a new issue