[R] Changes titles in ggplot2 plot
Felipe Carrillo
mazatlanmexico at yahoo.com
Sun Feb 13 04:19:40 CET 2011
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 <shigesong at gmail.com>
> To: r-help Help <r-help at 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 at 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
More information about the R-help
mailing list