[R] Background color of symbols in xyplot
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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Background color of symbols in xyplot
On 8/2/07, Sébastien [EMAIL PROTECTED] 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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Background color of symbols in xyplot
Thank you very much for your help. I have installed the latest versions of R and lattice are installed, and now the 'fill' argument (instead of bg) gives me what I want. [EMAIL PROTECTED] a écrit : On 8/2/07, Sébastien [EMAIL PROTECTED] 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 [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.