pubs_per_capita | R Documentation |
For the entire world, Europe (for European countries tend to be smaller) and states within the US.
pubs_per_capita(
pubs,
zoom = c("world", "europe", "usa"),
plot = c("choropleth", "bar"),
label_states = TRUE
)
pubs |
A data frame with one row per publication and columns country and for the US, also a column "state/province". |
zoom |
Whether to plot the world map or only Europe (centered on Western Europe and some Eastern European countries are partially cropped off) or only the US. |
plot |
Whether to plot choropleth or bar plot. |
label_states |
If plotting the US, whether to label the states. |
A ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.