add_tribe_colour | R Documentation |
Add tribe colour to the data frame. Useful for preparing the data for plotting with ggplot2.
add_tribe_colour(df, .tribe_status = "Original")
df |
Data frame. Requires |
.tribe_status |
Tribe status e.g. original, swapped, swapped_2, etc. |
Data frame with tribe_colour
added
library(survivoR)
library(dplyr)
get_cast("US47") |>
add_tribe() |>
add_tribe_colour()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.