Description Usage Arguments Value
Function to order race consistently for graph colors. Dataframe must have a race column with values matching those in ward_vector_order. Should run before running plotly.
1 2 3 4 5 6 |
df |
a stops or arrests dataframe with a ward column |
ward_col |
a column for ward values in the arrest/stops dataframe |
ward_vector_order |
character vector of how to order wards in visualizations/charts |
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.