add_tribe_colour: Add tribe colour

View source: R/add.R

add_tribe_colourR Documentation

Add tribe colour

Description

Add tribe colour to the data frame. Useful for preparing the data for plotting with ggplot2.

Usage

add_tribe_colour(df, .tribe_status = "Original")

Arguments

df

Data frame. Requires version_season and tribe.

.tribe_status

Tribe status e.g. original, swapped, swapped_2, etc.

Value

Data frame with tribe_colour added

Examples


library(survivoR)
library(dplyr)

get_cast("US47") |>
  add_tribe() |>
  add_tribe_colour()


survivoR documentation built on April 3, 2025, 5:34 p.m.