R, Incorrect output from ggplot2 and facet_wrap when using spatial data
问题 I'm trying to create a visualisation of the UK for different time periods where the fill for each region depends on a numeric variable. When I split the dataframe by time period and create the charts independently in ggplot2, they are correct. However, when I use the facet_wrap function to have them appear in a single chart, the outputs are incorrect (the numbers for each region are not correct). (Note, I have tried to follow this tutorial for spatial data in R as closely as possible: http:/