Create a single line time series graph in a dluhc theme
one_line_timeseries.Rd
Create a single line time series graph in a dluhc theme
Arguments
- .data
A dataframe in long format with 2 columns necessary: Date and value
- datecol
The column name which contains the date value in a widely used date format
- ycol
The column name which contains the values
- dateformat
is the format which the date is presented in using the standard R date format, see here for more detail https://www.statology.org/r-date-format/
Examples
df <- dluhctheme::Net_Additions
#> Error: 'Net_Additions' is not an exported object from 'namespace:dluhctheme'
one_line_timeseries(.data=df,datecol = year, ycol = lifeExp, dateformat = "%Y")
#> Error in UseMethod("pull"): no applicable method for 'pull' applied to an object of class "function"