R/ui-elements.R
time_graph.Rd
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 )
data frame to read indicators etc from
df column name to graph
set to true for moving averages
weight to use for moving average
y-axis label to use in graph
optional y-reference line
set to true for percentage value
ggplot