View source: R/plot_percent_by_race.R
plot_percent_by_race | R Documentation |
Horizontal bar plots colored by race/ethnicity showing percentages
plot_percent_by_race(
.x,
response,
label,
.race_ethnicity = "Race/Ethnicity",
.text_size = 4
)
.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 |
a graphical object to chain with other ggplot2 items.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.