Thursday, June 10, 2010

R: spaghetti plot using ggplot2 package

## color and group can be based on different variables
qplot(time,vol,data=dataname,group=id,color=trt,geom="line")

qplot(time,vol,data=dataname,group=id,geom="line",facets=.~trt)

No comments:

Post a Comment

Subscribe via email

Enter your email address:

Delivered by FeedBurner

Followers

Blog Archive

google analytics