quick_map | R Documentation |
quick_map()
allows the creation of maps quickly using {ggplot2}
. For this
reason, the resulting map is fully editable through {ggplot2}
layers.
quick_map(region = NULL, type = NULL)
region |
character string or atomic vector containing countries names ou continents. Default is |
type |
character string informing map type. Can be |
a ggplot object
quick_map()
depends heavily on the data available by
the {rnaturalearth}
package. In this sense, quick_map()
uses a wide and dirty filtering of
this data to create the map.
## Not run:
# plot a world map
quick_map()
# plot a new world map
quick_map(region = "Americas", type = "sf")
# using ggplot
quick_map(region = "Americas", type = "ggplot")
# edit using ggplot2 layers
quick_map() +
theme_void() +
geom_sf(fill = "white")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.