[R] How to plot gaps in chartSeries

Jeff Trefftzs jeff at trefftzs.org
Wed Feb 17 22:50:04 CET 2016


In hopes of isolating parts of a time series where my indicator is
above zero I have filled those rows where the indicator is <= 0  with
NAs.  I was hoping this would leave blank gaps when I plotted using
chartSeries(blanked, theme = 'white'), but chartSeries closes up the
gaps.  ggplot, however, leaves nice gaps in the output.

Is there a way to make chartSeries leave space for each value of the
time index of an xts object whether or not there is data for it?

-- 
Jeff Trefftzs
http://www.trefftzs.org



More information about the R-help mailing list