autoplot.epi_df | R Documentation |
Automatically plot an epi_df
## S3 method for class 'epi_df'
autoplot(
object,
...,
.color_by = c("all_keys", "geo_value", "other_keys", ".response", "all", "none"),
.facet_by = c(".response", "other_keys", "all_keys", "geo_value", "all", "none"),
.base_color = "#3A448F",
.max_facets = Inf
)
object |
An |
... |
< |
.color_by |
Which variables should determine the color(s) used to plot lines. Options include:
|
.facet_by |
Similar to |
.base_color |
Lines will be shown with this color. For example, with a
single numeric variable and faceting by |
.max_facets |
Cut down of the number of facets displayed. Especially
useful for testing when there are many |
A ggplot object
autoplot(cases_deaths_subset, cases, death_rate_7d_av)
autoplot(cases_deaths_subset, case_rate_7d_av, .facet_by = "geo_value")
autoplot(cases_deaths_subset, case_rate_7d_av,
.color_by = "none",
.facet_by = "geo_value"
)
autoplot(cases_deaths_subset, case_rate_7d_av,
.color_by = "none",
.base_color = "red", .facet_by = "geo_value"
)
# .base_color specification won't have any effect due .color_by default
autoplot(cases_deaths_subset, case_rate_7d_av,
.base_color = "red", .facet_by = "geo_value"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.