Hi:
Here's another version of the plot using ggplot2:
g <- ggplot(sleepstudy, aes(x = Days, y = Reaction, group = Subject, colour
= Subject))
g + geom_line(size = 1) + geom_smooth(aes(group = 1), size = 2) + theme_bw()
To get rid of the legend, if you so desire, use
g + geom_line(size = 1) +
Thank you so much, Michael. This solution is just what I was looking for.
Many thanks!
John
--
View this message in context:
http://r.789695.n4.nabble.com/Mean-and-individual-growth-curve-trajectories-tp3021672p3021746.html
Sent from the R help mailing list archive at Nabble.com.
___
jlwoodard wayne.edu> writes:
>
>
> I'm trying to understand how to plot individual growth curve trajectories,
> with the overall mean trajectory superimposed (preferably in a slightly
> thicker line, maybe in black) over the individual trajectories. Using the
> sleepstudy data in lme4, here is
I'm trying to understand how to plot individual growth curve trajectories,
with the overall mean trajectory superimposed (preferably in a slightly
thicker line, maybe in black) over the individual trajectories. Using the
sleepstudy data in lme4, here is the code I have so far:
library(lme4)
libr
4 matches
Mail list logo