usaid_plot {usaidplot} | R Documentation |
Create plots with the United States Agency for International Development's color palette
usaid_plot(data_type = "discrete", ppt = FALSE)
data_type |
A value to denote either "discrete" or "continuous" data are being graphed. "discrete" is the default. |
ppt |
A TRUE or FALSE option that changes the plot and facet background to match USAID's PowerPoint template colors. |
Returns a ggplot2 theme
p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
geom_point(aes(fill = factor(gear)), shape = 21, stroke = 1, col = "white", size = 6) +
usaid_plot()