Package 'usaidplot'

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

Help Index


Create plots with the United States Agency for International Development's color palette

Description

Create plots with the United States Agency for International Development's color palette

Usage

usaid_plot(data_type = "discrete", ppt = FALSE)

Arguments

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.

Value

Returns a ggplot2 theme

Examples

p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
geom_point(aes(fill = factor(gear)), shape = 21, stroke = 1, col = "white", size = 6) +
usaid_plot()