powered by
Add tribe colour to the data frame. Useful for preparing the data for plotting with ggplot2.
add_tribe_colour(df, .tribe_status = "Original")
Data frame with tribe_colour added
tribe_colour
Data frame. Requires version_season and tribe.
version_season
tribe
Tribe status e.g. original, swapped, swapped_2, etc.
library(survivoR) library(dplyr) get_cast("US47") |> add_tribe() |> add_tribe_colour()
Run the code above in your browser using DataLab