Description Usage Arguments Value See Also Examples
covid_growth streamlines the process for plotting a line graph to analyze longitudinal changes in a user-selected variable over time. Variable options include total cases ("tot_cases"), new cases ("new_cases"), total deaths ("tot_death"), and new deaths ("new_death").
1 2 3 4 5 6 7 8 |
states |
region to analyze. |
value |
covid statistic to analyze. |
sum |
take sum of all cases over states or treat states individually. |
df_print |
print a data frame or not. |
interact |
whether additional information will display when user hovers over image (use ggplot or plotly) |
... |
pass other arguments |
a plotly or ggplot object.
1 2 3 4 | covid_growth(states="colorado", df_print=FALSE, sum=FALSE)
covid_growth(states=c("colorado", "nevada"))
covid_growth(states=c("colorado", "nevada", "florida", "california"), df_print=FALSE, sum=FALSE)
covid_growth(states=c("colorado", "nevada", "florida", "california"), interact=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.