[R-sig-Geo] grid.text with rasterVis::layerplot

Tiffany Smith smithtiffanyt at gmail.com
Fri May 22 21:54:03 CEST 2015


Below is a chunk of code that plots a rasterStack with 6 layers; I am trying to put labels a-f in the bottom right corner of each plot. The code below only shows the letter “a”, how do I get different letters to show in the bottom left corner of each of the 6 plots as I use levelplot?

levelplot(positive,par.settings=myTheme,names.attr=c("","","","","",""))+layer(sp.lines(conus))+layer(sp.lines(n.am))+layer(grid.text(c("a.","b.","c.","d.","e.","f."),.95,.1))

Thanks,
Tiffany
	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list