[R] xyplots
Deepayan Sarkar
deepayan.sarkar at gmail.com
Thu Sep 29 22:40:05 CEST 2005
On 9/28/05, Nathan Leon Pace, MD, MStat <N.L.Pace at m.cc.utah.edu> wrote:
> A related question:
>
> My xyplot is essentially a time series (up-and-down experimental
> design). Thus I need to connect the points sequentially regardless of
> the group value. With the groups argument, type = 'b' gives two lines
> - one for each group.
xyplot(rnorm(100) ~ 1:100,
groups = sample(1:2, 100, TRUE),
panel = function(x, y, ..., type) {
panel.lines(x, y, ...)
panel.superpose(x, y, ..., type = 'p')
})
More information about the R-help
mailing list