Re: Plotting quarterly data

157 views
Skip to first unread message

Ben Bond-Lamberty

unread,
Oct 15, 2012, 9:29:45 PM10/15/12
to ggp...@googlegroups.com
Carlos,

This is a pretty general question...googling "ggplot date axis"
produces a whole bunch of things to read and tutorials to follow, a
useful place to start. Basically, I think you're going to want to make
sure your date variable is in "POSIXct", the date format understood by
ggplot, and go from there. If you'd like a more specific answer, send
some sample data.

Kind regards
Ben


On Mon, Oct 15, 2012 at 6:12 PM, Carlos Montes-Galdón
<car...@montesgaldon.com> wrote:
> Hi,
>
> Sorry if this is trivial but I am new to R/ggplot. I have one time series
> with quarterly frequency, and when I plot it, I don't know how to put the
> dates in the x-axis. With annual data there is no problem, but I don't know
> how I should format the "date" variable to get something nice in the graph.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2

Carlos Montes-Galdón

unread,
Oct 16, 2012, 9:38:18 AM10/16/12
to ggp...@googlegroups.com
Yes, sorry, that was stupid of me... I made it work :)
Reply all
Reply to author
Forward
0 new messages