View source: R/plot_utilities.R
This will add in any missing dates with zeroes, then change the yearmon/yearqtr dimension into a factor so that it can be used in order like all other factor dimensions.
1 | factor_zoo(df, dimension, measure, facet_by, type)
|
df |
The data frame to update the dimension |
dimension |
The column containing the values to compare across (e.g. quarters, types) |
measure |
The data frame column with the numerical values to plot |
facet_by |
The data frame column with the facet data (if necessary). |
type |
The zoo type, either |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.