depictr.timeseries_plot#
- depictr.timeseries_plot(x, rolling=None, title=None)#
The series as a line, optionally with a rolling-mean overlay.
- Parameters:
x (pandas.Series or array-like) – The series. A datetime or period index sets the x-axis; otherwise the observation number is used.
rolling (int, optional) – Window length for a centred rolling mean, drawn over the series in the accent colour. Omit for the raw line only.
title (str, optional)
- Return type:
plotnine.ggplot