getTeamColours: Get Team Colours

View source: R/graphics.R

getTeamColoursR Documentation

Get Team Colours

Description

Given a home and away team, return a set of two colours that correspond one to each team, yet are not too similar to eachother. Instead of returning Blue and Blue for Buffalo and Tampa, change Buffalo to their Gold

Usage

getTeamColours(home, away, delta = 0.15)

Arguments

home

Home Team colours to get

away

Away Team's colours to get

delta

Colour delta required. Default 0.15. See colourDelta. Must be between 0 and 1

Value

a list with two items: home & away, each containing the appropriate hex colour value

Examples

getTeamColours("Buffalo Sabres", "Tampa Bay Lightning")

pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.