Skip to contents

Create a single line time series graph in a dluhc theme

Usage

one_line_timeseries(.data, datecol, ycol, dateformat = "%Y-%m-%d")

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/

Value

a ggplot object

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"