Re: [R] graphics - joining repeated measures with a line

From: hadley wickham <h.wickham_at_gmail.com>
Date: Thu 07 Sep 2006 - 13:41:10 GMT

> I would like to join repeated measures for patients across two visits using
> a line. The program below uses symbols to represent each patient. Basically,
> I would like to join each pair of symbols.

This is easy in ggplot:

install.packages("ggplot")
library(ggplot)

qplot(visit, var, id=patient, type=c("line", "point"), colour=factor(patient))

Regards,

Hadley



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 and provide commented, minimal, self-contained, reproducible code. Received on Thu Sep 07 23:47:05 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 Thu 07 Sep 2006 - 13:55:41 GMT.

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