plot_country: Plot the development in a single country

Description Usage Arguments Value Examples

View source: R/plot-data.R

Description

Plot the development in a single country

Usage

1
plot_country(data, show_model = TRUE)

Arguments

data

Preprocessed data containing data for one country

show_model

Logical, Should the predicted values be displayed

Value

A ggplot2 obj

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
data %>%
 preprocess_corona_data(statistic = "deaths",
                        countries = "Italy",
                        n = 10) %>%
 predict_growth() %>%
 plot_country(show_model = TRUE) +
 ggplot2::ggtitle("Corona  Death Growth Curve in Italy",
                  subtitle = "Starte date is the first day with > 10 deaths")

## End(Not run)

jnshsrs/corona documentation built on April 9, 2020, 11:10 p.m.