Dear R-users, I am using plot symbols given by pch=21:25 in a xyplot. The background color of these symbols can be defined by 'fill' in the panel argument, however I have a hard time to find how to define the same background color in the key. I tried different options like using the auto.key argument and modifying the par.settings, or using normal key argument plus 'fill', 'bg' or 'background'... nothing seems to do I want. What should I change in the following code to make it work ? key=list(space="bottom", points = list(pch = 21:25, col = 32, bg=15), text=list(mylegend)), Thank in advance Sebastien PS: cheng
deepayan.sarkar at gmail.com
2007-Aug-03 16:10 UTC
[R] Background color of symbols in xyplot
On 8/2/07, S?bastien <pomchip at free.fr> wrote:> Dear R-users, > > I am using plot symbols given by pch=21:25 in a xyplot. The background > color of these symbols can be defined by 'fill' in the panel argument, > however I have a hard time to find how to define the same background > color in the key. I tried different options like using the auto.key > argument and modifying the par.settings, or using normal key argument > plus 'fill', 'bg' or 'background'... nothing seems to do I want. What > should I change in the following code to make it work ? > > key=list(space="bottom", > points = list(pch = 21:25, > col = 32, > bg=15), > text=list(mylegend)),For starters, upgrade to the latest version of R and lattice. -Deepayan