Hi:
Having just seen your follow-up question, here's how it could be done
in ggplot2 or lattice:
# ggplot2 version:
ggplot(w, aes(x = age, y = outcome)) + geom_line(aes(group = .id)) +
stat_summary(fun.y = 'mean', geom = 'line', color = 'blue', size = 2)
# lattice version:
xyplot(outcome ~ ag
Hi:
Your code doesn't work, but if you want to do spaghetti plots, they're
rather easy to do in ggplot2 or lattice.
The first problem you have is that one group in your test data has all
NA responses, so by() or any other groupwise summarization function is
going to choke unless you give it a way
Sorry, I thought the link would work for people because it is a public link
and it works for me when I run it in R. Anyways, here is an example set of
data that I am having trouble with:
/id <-
c(230017,230017,230017,230018,230018,230018,230019,230019,230019,230020,230020,
230020,230021,2
On Sep 7, 2011, at 9:45 AM, dadrivr wrote:
Bump, please help!
When I encounter one of these Nabble "bump" messages doing my
moderation duties I simply discard it. This is not a website. This is
a mailing list.
If you didn't get an answer it suggests that your example was not
sufficie
Bump, please help!
--
View this message in context:
http://r.789695.n4.nabble.com/Problem-with-by-statement-for-spaghetti-plots-tp3788536p3796131.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https:/
Hi,
I am trying to apply the example at the bottom of the following page to my
own data:
http://128.97.141.26/stat/R/faq/spagplot.htm
http://128.97.141.26/stat/R/faq/spagplot.htm
The code from the example is:
/tolerance<-read.table("http://www.ats.ucla.edu/stat/R/faq/tolpp.csv",sep=",";,
header=
6 matches
Mail list logo