you can just probably add + labs(x="Time Elapsed,y="Predicted Probability") Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx
----- Original Message ---- > From: Shige Song <shiges...@gmail.com> > To: r-help Help <r-help@r-project.org> > Sent: Sat, February 12, 2011 7:07:39 PM > Subject: [R] Changes titles in ggplot2 plot > > 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 > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 4[[elided Yahoo spam]] hoo.com/promo-generic-14795097 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.