Skip to content
Back to formatted view

Raw Message

Message-ID: <eb555e660902200124x750ef204pfa96980f56ca7ce9@mail.gmail.com>
Date: 2009-02-20T09:24:38Z
From: Deepayan Sarkar
Subject: dotplot points color
In-Reply-To: <22099530.post@talk.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