plot_moving_avg: Plot New Cases and New Deaths Moving Average

Description Usage Arguments Value

View source: R/plot_moving_avg.R

Description

This function returns the plot of the 7 day moving average of new cases and new deaths.

Usage

1
plot_moving_avg(df, state_selected, state_view)

Arguments

df

Data Frame returned from getBrazilCovid19Data() function.

state_view

Logical. Indicating whether is to compute per state or aggregated for the whole country.

state

String. State name in 2 letter. If NULL 9default) then return the plot for the country aggragated data.

Value

ggplot object


viniciusmsousa/Covid19-Monitor documentation built on April 9, 2021, 3:34 a.m.