This function returns a figure with plots of previously calculated indices (together with dates on X-axis and a corresponding legend). Indices must be provided as a data frame, where the the first column must includes dates limited to the year and month (e.g.: "2020-04").
Arguments
data
The user's data frame with price index values. It must contain columns: time (as character in format: year-month, e.g. '2020-12') and columns with index values.
names
A vector of strings indicating names of indices which are to be used in the figure's legend.
date_breaks
A string giving the distance between breaks on the X axis like "1 month" (default value) or "4 months".