[R-SIG-Finance] Plotting intraday time series with ggplot2

Gabor Grothendieck ggrothendieck at gmail.com
Tue Mar 30 13:13:25 CEST 2010


Its not ggplot2 but gap.plot in the plotrix package will put gaps on
an axis in classic graphics.

On Tue, Mar 30, 2010 at 7:07 AM, Chris Masters
<christopher.masters at gmail.com> wrote:
> Hi
>
> I have a time series over n days of data observed at fixed intervals (m
> seconds) between 8:30am and 4:30pm and would like to plot this with ggplot2
> without the overnight gaps between 4:30pm and 8:30am. I have googled around
> quite a bit trying to see if I can have a disjoint x-axis but can't seem to
> come up with much. I also tried using scale_x_continuous for each day in the
> hope you could apply it multiple times to achieve this. I'd also like to
> label the x-axis with the dates of the days.
>
> Does anyone have any ideas? It seems like it should be a relatively simple
> to do but I'm afraid my ggplot2 knowledge is a bit thin
>
> Thanks
>
> Chris
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.
>



More information about the R-SIG-Finance mailing list