On 2/19/09, glaporta <glapo...@freeweb.org> wrote:
>
> Dear list,
> is it possible to change the background color of dotplot's points? I tried
> in many ways but unsuccessfully
> Thanks in advance
> Gianandrea
>
> require(lattice)
> dotplot(variety ~ yield | site, data = barley, groups = year, pch=21)
> dotplot(variety ~ yield | site, data = barley, groups = year, pch=21,
> bg=c("2","3")) ??!!!

Try

dotplot(variety ~ yield | site, data = barley, groups = year, pch=21,
fill = c(1, 2))

-Deepayan

______________________________________________
R-help@r-project.org 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.

Reply via email to