Troy S
unread,Jan 24, 2013, 4:38:24 PM1/24/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggplot2
I'm trying to eliminate the word drug in the guide for the following plot. I read the manual but not having much luck.
set.seed(123)
y=data.frame(t=runif(100, 1, 100), fraction=sort(runif(100)),
drug=sample(letters[1:2], 100, replace=T))
print(ggplot(y, aes(t, fraction, linetype=drug))
+geom_step()
+scale_x_continuous("Days",limits=c(0,168))
+scale_y_continuous("Percent", limits=c(0,1), labels=percent)
+guides(col=guide_legend(title=NULL))
)