I have been trying to plot using spplot(). My variable is a factor, but some levels are unused. When I plot the map with a key (using the default colorkey=T) everything plots fine. But when I remove the key (colorkey=F) all of the colors map to the wrong factors (I am assuming this is because some of the factor levels are unused).
This maps as I would expect it, with the key: spplot(worldmap, "mu.level", lwd=0.01, col="white", scales = list(draw = F), colorkey = T, par.settings=list(fontsize=list(text=10, points=10)), cuts=24, col.regions=colvec) Is there any way to hide/get rid of the key without changing the plot (i.e. without using colorkey=F)? Thanks! [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo