Graph of indicators by year, with or without moving average and/or reference line

time_graph(
  df,
  indicator,
  ma = FALSE,
  weight = NULL,
  ylabel = NULL,
  refline = NULL,
  percent = FALSE
)

Arguments

df

data frame to read indicators etc from

indicator

df column name to graph

ma

set to true for moving averages

weight

weight to use for moving average

ylabel

y-axis label to use in graph

refline

optional y-reference line

percent

set to true for percentage value

Value

ggplot