Title: | Make Graphs with US Agency for International Development Colors |
---|---|
Description: | Automatically apply the United States Agency for International Development's color palette and fonts for either discrete or continuous variables. |
Authors: | Jacob Patterson-Stein [aut, cre] |
Maintainer: | Jacob Patterson-Stein <[email protected]> |
License: | MIT + file LICENSE |
Version: | 2.0.2.9000 |
Built: | 2025-02-15 04:24:34 UTC |
Source: | https://github.com/jacobpstein/usaid_plot |
Create plots with the United States Agency for International Development's color palette
usaid_plot(data_type = "discrete", ppt = FALSE)
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()
p <- ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point(aes(fill = factor(gear)), shape = 21, stroke = 1, col = "white", size = 6) + usaid_plot()