Skip to content
Prev 256769 / 398506 Next

Line plots in base graphics

Hadley Wickham <hadley <at> rice.edu> writes:
data(Oxboys, package = "nlme")
library(ggplot2)
 
qplot(age, height, data = Oxboys, geom = "line", group = Subject)
with(Oxboys, plot(age, height, type = "n"))
lapply(split(Oxboys[c("age", "height")], Oxboys$Subject), lines)

[quoting removed to fool gmane]
reshape to wide format and matplot()?