Description Usage Arguments Value See Also Examples
plot_abs_deaths
is used to create a plot of the total number of deaths during the time span of a year.
It is possible to include more than one year.
1 | plot_abs_deaths(years = 2020, smoothing = 0)
|
years |
A vector of years. The years must be represented as integers. Data is available for the years 2000 up to 2020. |
smoothing |
A positive integer that defines the window size of the moving average. Thus, the plot will be smoother the higher 'smoothing' is chosen. The default setting is 'no smoothing'. |
A plot of the daily death data of the years the user specified.
Other total number of daily deaths:
get_abs_deaths()
1 2 3 4 5 6 7 | get_abs_deaths(c(2001,2003,2006,2016),smoothing=2)
## Not run: get_abs_deaths(1999)
#Data is only available for 2000-2020.
## Not run: get_abs_deaths(c("2006"),smoothing=-2.4)
#Years must be a vector of integer values and smoothing must be a positive integer.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.