I have a contour plot, I am wondering is it possible to label the individual contour levels as well as the colours? (i.e. say the first pink contour is 0.2, second is 0.4 or whatever works).
Also, what is the argument for filling land as a solid color?
library(lattice)
contourplot(cor_Warra_SF_SST_SON, region=TRUE, at=seq(-1, 1, 0.2),
labels=FALSE, row.values=lon_sst, column.values=lat_sst,
xlab='longitude', ylab='latitude')

To include labels for the contour lines, simply set
labels = TRUE(in place of thelabels=FALSEthat you are currently using).?contourplotdocument thelabelsargument thusly:To add filled polygons for the continents, I’d try using
mapplot()from thelatticeExtrapackage, adding it to the plot you’re already produced usinglayer(), also fromlatticeExtra. (I can’t get much more specific than that without having access to the data you are using.)