plot_percent_by_race: Horizontal bar plots colored by race/ethnicity showing...

View source: R/plot_percent_by_race.R

plot_percent_by_raceR Documentation

Horizontal bar plots colored by race/ethnicity showing percentages

Description

Horizontal bar plots colored by race/ethnicity showing percentages

Usage

plot_percent_by_race(
  .x,
  response,
  label,
  .race_ethnicity = "Race/Ethnicity",
  .text_size = 4
)

Arguments

.x

the data, including a "Race/Ethnicity" variable

response

the percentage-valued response variable

label

a horizontal axis label for the plot

.race_ethnicity

optional, defaults to "Race/Ethnicity"

.text_size

optional, defaults to 4

Value

a graphical object to chain with other ggplot2 items.


higherX4Racine/hiRx documentation built on Nov. 18, 2024, 10:20 a.m.