factor_zoo: Expand yearmon or yearqtr into a factor

Description Usage Arguments

View source: R/plot_utilities.R

Description

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.

Usage

1
factor_zoo(df, dimension, measure, facet_by, type)

Arguments

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 "yearmon" or "yearqtr".


brascoball/ggquik documentation built on Feb. 14, 2021, 5:17 p.m.