View source: R/plotPrevalenceDotPlot.R
plotPrevalenceDotPlot | R Documentation |
Plots a dot plot of prevalences of a variant in a specific location
plotPrevalenceDotPlot(df, title = NULL, subtitle = NULL, dot_size = 3)
df |
Dataframe resulting from calling getCumulativeBySubadmin |
title |
(optional) Title to include on the plot |
subtitle |
(optional) Subtitle to include on the plot |
dot_size |
(optional) Dot plot size (in mm) |
# Calculate the proportion of sequences assigned to BA.2 or BA.2.12.1 by U.S. State prev_by_state = getCumulativeBySubadmin(pangolin_lineage = c("BA.2", "BA.2.12.1"), location = "United States", ndays = 90) # Plot the results plotPrevalenceDotPlot(prev_by_state, "Prevalence over the last 90 days in the United States", subtitle = paste0("As of ", format(Sys.Date(), '%d %B %Y')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.