Skip to content

help on spplot

2 messages · Cristina Silva, Matthew Landis

#
Dear all,

I am trying to map fish densities in different years from a 
SpatialPointsDataFrame. I managed to change the legend labels using 
lengendEntries and the their position using key.space, but not the font 
size. I have looked in help pages and in the books ASDAR and Lattice, 
and tried to use colorkey=list(cex=.5) but didn't work. Could anybody 
give me a hint on how to do this?

Thanks in advance.

Cristina
#
Cristina,

I think you are on the right track with colorkey = list(cex = 0.5).  
Instead, try:

colorkey = list(labels = list(cex = 0.5))

I think I had to delve pretty deep into the documentation for levelplot 
or xyplot to figure that out.

Matt
On 9/2/2011 11:31 AM, Cristina Silva wrote: