[R] Changes titles in ggplot2 plot
Shige Song
shigesong at gmail.com
Sun Feb 13 04:07:39 CET 2011
Dear Colleagues,
In the following simple ggplot2 code:
--------------------------------
m <- ggplot(d.fig, aes(time, prob))
m + stat_summary(fun.data = "median_hilow", conf.int = .95, geom =
"smooth") + facet_wrap(~ Cohort, nrow=1) + coord_cartesian(ylim = c(0,
.03))
--------------------------------
Is there a way to replace the y-axis label from "prob" to "Predicted
Probability" and replace the x-axis label from "time" to "Time
Elapsed"?
Many thanks.
Best,
Shige
More information about the R-help
mailing list