query3 | R Documentation |
For each country, identify the top 3 peaks given a variable (e.g., daily new cases).
query3( plot_type = "static", fill = "new_cases", log_scale = FALSE, projection = "mercator", palette = "YlOrBr" )
plot_type |
"static" | "dynamic" |
fill |
"new_cases" | "new_deaths" | "new_vaccinations" - The map will be filled by this variable. |
log_scale |
FALSE | TRUE - Apply a log transformation on the selected variable? Could be useful if variable contains outliers. |
projection |
"mercator" | "globular" | "gilbert" |
palette |
"YlOrBr" or any sequential palette from RColorBrewer: "YlOrRd", "YlOrBr", "YlGnBu", "YlGn", "Reds", "RdPu", "Purples", "PuRd", "PuBuGn", "PuBu", "OrRd", "Oranges", "Greys", "Greens", "GnBu", "BuPu", "BuGn", "Blues". |
Either a static map produced with ggplot2 or a dynamic one produced with leaflet.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.