[R] Time series and ggplot2

ONKELINX, Thierry Thierry.ONKELINX at inbo.be
Tue Aug 23 09:43:39 CEST 2011


Without a reproducilbe example, it is hard to give you good advise...

> -----Oorspronkelijk bericht-----
> Van: r-help-bounces op r-project.org [mailto:r-help-bounces op r-project.org]
> Namens ashz
> Verzonden: maandag 22 augustus 2011 23:53
> Aan: r-help op r-project.org
> Onderwerp: [R] Time series and ggplot2
> 
> Hi,
> 
> I made a time-series plot using ggplot. All the points are shown in the graph but
> unfortunately it does not display all the months in the graph X-axis text/labels
> but only one month per year.
> 
> Furthermore, the data contain some NA as not all the month as Y values.
> 
> Therefore, how can I display all the months in the X axis text/labels?
> how can I display only January, April, July and October the months in the X axis
> text/labels?
> 
> Thanks,
> Ashz
> 
> PS
> axis.text.x  = theme_text(angle=90)
> and
> scale_x_date(format = "%b-%Y")
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Time-series-and-
> ggplot2-tp3761434p3761434.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help op 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.



More information about the R-help mailing list