add_tribe_colour {survivoR}R 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()


[Package survivoR version 2.3.5 Index]