pubs_per_capita: Plot per capita data as choropleth or bar plot

View source: R/plot.R

pubs_per_capitaR Documentation

Plot per capita data as choropleth or bar plot

Description

For the entire world, Europe (for European countries tend to be smaller) and states within the US.

Usage

pubs_per_capita(
  pubs,
  zoom = c("world", "europe", "usa"),
  plot = c("choropleth", "bar"),
  label_states = TRUE
)

Arguments

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.

Value

A ggplot2 object.


pachterlab/museumst documentation built on April 20, 2024, 11:26 p.m.