time_graph | R Documentation |
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
)
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 |
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.