[R] xyplot question

Deepayan Sarkar deepayan.sarkar at gmail.com
Sat Sep 15 01:31:43 CEST 2007


On 9/14/07, Raymond Balise <iteachtyping at gmail.com> wrote:
> I am tring to do an xyplot where I want to plot 5 dots in each pane of
> the trellice and the dots need to have lines (whiskers) extending up
> and down at each point(plus a 45 degree reference line).  The data
> frame is set up with the variables x y lcl and ucl (where the lcl and
> ucl are the limits on the lines I want).  The code below gives me the
> points but I cant figure out the lines limited by the lcl and ucl
> variable.

demo("intervals", package = "lattice")

should get you most of the way. The source should be easier to read from

https://svn.r-project.org/R-packages/trunk/lattice/demo/intervals.R

You can ignore most of it; you just need prepanel.ci, panel.ci, and
the xyplot() call at the end.

-Deepayan



More information about the R-help mailing list