Description Usage Arguments Value
Function to order race consistently for graph colors. Dataframe must have a race column with values matching those in race_vector_order. Should run before running plotly.
1 2 3 4 5 6 |
df |
a stops or arrests dataframe with a race column |
race_col |
a column for race/ethnicity values in the arrest/stops dataframe |
race_vector_order |
character vector of how to order race-values appearing in dataframe in visualizations |
df with race column ordered as factor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.