View source: R/plot_indicator.R
plot_indicator | R Documentation |
This function plots the indicator using ggplot2.
plot_indicator(
indicator,
CIs,
year = 1:length(indicator),
index = indicator[1],
smoothed_line = NULL,
main = ""
)
indicator |
A numeric vector, one value for each year |
CIs |
A matrix with two columns, the first column is the lower bound and the second is the upper bound. |
year |
A numeric vector as long as |
index |
Numeric, the index value, by default it is taken to be the
first value of |
smoothed_line |
A numeric vector giving the smoothed values to plot
see |
main |
Title given to the plot |
The plot object is returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.