Re: [R] xyplots

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Thu 29 Sep 2005 - 06:43:56 EST

On 9/28/05, Nathan Leon Pace, MD, MStat <N.L.Pace@m.cc.utah.edu> wrote:
> Hi All,
>
> I have a four panel xyplot. I wish to plot each point as an open or
> filled circle depending on the value of an indicator variable.
>
> I assume I need to use panel.superpose(), but I can't figure out the
> syntax from lattice documentation.

Not directly. You do need to change the plotting character (pch). Here are two ways to do it (the second is longer but recommended):

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

dotplot(variety ~ yield | site, data = barley, groups = year,

        auto.key = TRUE,
        par.settings = list(superpose.symbol = list(pch = c(1, 16))))

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 Received on Thu Sep 29 07:09:40 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 17:52:51 EST