termColours: Constructs colour vector for model terms

View source: R/appPlots.R

termColoursR Documentation

Constructs colour vector for model terms

Description

Constructs colour vector for model terms

Usage

termColours(f, pal = RColorBrewer::brewer.pal(4, "Set2"))

Arguments

f

a model fit with term labels

pal

use this palette

Value

a vector of colours. Residuals are given a grey color

Examples

termColours(lm(mpg ~ wt+hp, data=mtcars))

ERSA documentation built on Aug. 21, 2023, 5:06 p.m.