I have a shapefile with various attributes. I want to plot the shapefile using `spplot'.
I first read the shapefile
A <- readOGR('myshapefile.shp')
I am using the following command:
p <- spplot(A, c('lulc', 'lulc_2', 'lulc_3',
'lulc_4', 'lulc_5', 'lulc_6', 'lulc_7'),
col.regions=myColors,
col='transparent',
names.attr = c(1998, 1999, 2002, 2003, 2009, 2014, 2017))
Surprisingly, the map order is from bottom to top and left to right in 3 rows.
I want them to appear from top to bottom and left to right order i.e. 1998 should appear first and 2017 should appear last.