View source: R/factor_functs.R
race_factor | R Documentation |
Race factor Orders race column in given data-frame for consistency in plot_ly coloring, based on what races present in dataframe
race_factor(df, race_col = race)
df |
Dataframe with race column |
race_col |
Name of race column |
Dataframe with race column as factor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.