Skip to content

How to plot gaps in chartSeries

1 message · Jeff Trefftzs

#
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?