Displaying 1 result from an estimated 1 matches for "peelclass".
Did you mean:
keepclass
2010 Dec 14
1
lattice fun: multiple themes in panels with spplot()
...ird is a
percentage, so the maps need to have different themes.
thumbDf <- as( stack( thumb), "SpatialGridDataFrame")
names(thumbDf at data) <- c("pri", "sec", "pct")
thumbDf at data$pri <- factor(thumbDf at data$pri, levels=c(0:8), labels= names(
peelClasses))
thumbDf at data$sec <- factor(thumbDf at data$sec, levels=c(0:8), labels= names(
peelClasses))
stack() comes from library(raster), which does not do lattice natively and
doesn't plot thematic maps particularly well, AFAIK. Coercing the data to
something that spplot() can handle and cha...