On 9/28/05, Nathan Leon Pace, MD, MStat <[EMAIL PROTECTED]> 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')
       })

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to