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")) ??!!! -- View this message in context: http://www.nabble.com/dotplot-points-color-tp22099530p22099530.html Sent from the R help mailing list archive at Nabble.com.
On 2/19/09, glaporta <glaporta at 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
Thank you Deepayan, for this suggestion dotplot(variety ~ yield | site, data = barley, groups = year, pch=21, fill c(1, 2)) glaporta 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")) ??!!! > > >-- View this message in context: http://www.nabble.com/dotplot-points-color-tp22099530p22117527.html Sent from the R help mailing list archive at Nabble.com.