From f2947b31d6ad87552ae38960008f7ff27cfe5745 Mon Sep 17 00:00:00 2001 From: Jeremy Kidwell Date: Tue, 29 Jan 2019 08:10:55 +0000 Subject: [PATCH] added note re fortify issues --- mapping_draft.Rmd | 1 + 1 file changed, 1 insertion(+) diff --git a/mapping_draft.Rmd b/mapping_draft.Rmd index 4cb4cbb..7faf929 100644 --- a/mapping_draft.Rmd +++ b/mapping_draft.Rmd @@ -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/ 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") # draw map using sp data