[R] adding grid lines to an xyplot when there is only 1 panel - corrected

From: ken knoblauch <knoblauch_at_lyon.inserm.fr>
Date: Thu 18 May 2006 - 17:03:08 EST


Sorry, some things got garbled in that request for help that might make my request
unintelligible, probably it being too late at night when I posted, here is the corrected function
call for which I would like to learn how to add horizontal grid lines. Any suggestions
would be appreciated. Apologies for the posting error

xyplot(est ~ STE, data = all, groups = AREA, type = "b",

                   auto.key = list(space = "right"))

For the record, I'm working with Mac OS X 10.4.6 with R 2.3

Thank you.

> I've been struggling with this for a while and cannot get it to work.
> Is there a simple way to add grid lines ---- I'd like to only add the
> horizontal ones --- when using the groups argument in xyplot?
> I can get the grid lines to plot, or the points/lines, but not both.
> Here is a simple example of the sort of thing that I'm working with.
> Thanks, in advance.
>
> >all
> est STE AREA
> -0.229 V1 V1
> -1.129 V1 V2
> -2.084 V1 V4
> -2.918 V1 V3
> -0.548 V2 V1
> -0.217 V2 V2
> -1.937 V2 V3
> -1.205 V2 V4
> -4.126 V4 V1
> -1.481 V4 V2
> -2.070 V4 V3
> -0.042 V4 V4
>
> xyplot(est ~ ISITE, data = all2, groups = AREA, type = "b",
> auto.key = list(space = "right"))
>

Ken Knoblauch

-- 
Ken Knoblauch
Inserm U371
Cerveau et Vision
Dept. of Cognitive Neuroscience
18 avenue du Doyen LÚpine
69500 Bron
France
tel: +33 (0)4 72 91 34 77
fax: +33 (0)4 72 91 34 61
portable: +33 (0)6 84 10 64 10
http://www.lyon.inserm.fr/371/

______________________________________________
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 May 18 17:08:37 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 19 May 2006 - 06:10:08 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.