[R-sig-Geo] Add title to rastervis levelplot
Oscar Perpiñan Lamigueiro
oscar.perpinan at upm.es
Wed Jan 25 14:51:18 CET 2012
I have just remembered two working alternatives to "main":
levelplot(r, sub='Volcano')
levelplot(r, xlab.top='Volcano')
Best,
Oscar.
>>Hi list,
>>
>>I'd like to add a title to a level plot from rasterVis package but I
>>couldn't find how. There are no examples of this on the rastervis
>>page. I'm not very familiar with lattice kung fu, but I've tried :
>>
>>library(raster)
>>library(rasterVis)
>>r <- raster(volcano)
>>levelplot(r, margin = FALSE, main = "The Great Volcano")
>># or
>>levelplot(r, margin = FALSE, main = list("The Great Volcano"))
>>
>>Any other way of adding an anotation to that plot would be welcome as
>>well.
>>
>>Thanks,
>>Etienne
>>
>> [[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list