Re: [R] Line plots in base graphics

2011-04-13 Thread baptiste auguie
On 14 April 2011 07:51, Hadley Wickham wrote: > Am I missing something obvious on how to draw multi-line plots in base > graphics? > > In ggplot2, I can do: It appears you've been infected with what I like to call "the Dijkstra syndrome" [*], quoting "The tools we use have a profound (and devio

Re: [R] Line plots in base graphics

2011-04-13 Thread Ben Bolker
Hadley Wickham rice.edu> writes: > On Wed, Apr 13, 2011 at 2:58 PM, Ben Bolker gmail.com> wrote: > > Hadley Wickham rice.edu> writes: > > > >> > >> Am I missing something obvious on how to draw multi-line plots in > >> base graphics? [snip] > >> But in base graphics, the best I can come up w

Re: [R] Line plots in base graphics

2011-04-13 Thread Hadley Wickham
On Wed, Apr 13, 2011 at 2:58 PM, Ben Bolker wrote: > Hadley Wickham rice.edu> writes: > >> >> Am I missing something obvious on how to draw multi-line plots in >> base graphics? >> >> In ggplot2, I can do: >> > data(Oxboys, package = "nlme") > library(ggplot2) > > qplot(age, height, data = Oxboys

Re: [R] Line plots in base graphics

2011-04-13 Thread Ben Bolker
Hadley Wickham rice.edu> writes: > > Am I missing something obvious on how to draw multi-line plots in > base graphics? > > In ggplot2, I can do: > data(Oxboys, package = "nlme") library(ggplot2) qplot(age, height, data = Oxboys, geom = "line", group = Subject) > But in base graphics, the

[R] Line plots in base graphics

2011-04-13 Thread Hadley Wickham
Am I missing something obvious on how to draw multi-line plots in base graphics? In ggplot2, I can do: data(Oxboys, package = "nlme") library(ggplot2) qplot(age, height, data = Oxboys, geom = "line", group = Subject) But in base graphics, the best I can come up with is this: with(Oxboys, plot(