Skip to content
Prev 11204 / 29559 Next

simple spplot problem (colorkey inside the plotting area)

Dear Rainer,

spplot is a wrapper function around levelplot (for grids, polygons and
lines) or xyplot (for points), both in package lattice.

As the documentation mentions, the key.space argument is only available
for points, where it is passed (as key argument) to xyplot.

I looked up the documentation of ?levelplot (after loading lattice), and
although it does have x and y componenents for the colorkey, it does
explicitly mention that these are not implemented. The only things you
can modify are the key height/width, and the space argument ('bottom',
'left', 'right', 'top'). I do not see a possibility to move the key to
wherever you want.

I cc:'d this message to Deepayan Sarkar, the lattice author, maybe he
has a suggestion where to look next.
On 03/16/2011 10:48 AM, Stowasser Rainer wrote: