[R] ggplot2: how to label lines?

2010-10-26 Thread Jeffrey Spies
Hi, all, Let's say I have some time series data--10 subjects measured 20 times--that I plot as follows: library(ggplot2) dat - data.frame(subject=as.factor(rep(1:10, each=20)), time=rep(1:20, 10), measure=as.vector(replicate(10, rnorm(20, mean=runif(1, 0, 15), sd=runif(1, 1, 3) p -

Re: [R] ggplot2: how to label lines?

2010-10-26 Thread baptiste auguie
Hi, Have a look at the directlabels package; it does just that for lattice and ggplot2. HTH, baptiste On 26 October 2010 08:02, Jeffrey Spies jsp...@virginia.edu wrote: Hi, all, Let's say I have some time series data--10 subjects measured 20 times--that I plot as follows:

Re: [R] ggplot2: how to label lines?

2010-10-26 Thread Ben Bolker
baptiste auguie baptiste.auguie at googlemail.com writes: Hi, Have a look at the directlabels package; it does just that for lattice and ggplot2. Note that this package is on r-forge, not CRAN http://directlabels.r-forge.r-project.org/ [very nice examples]