ERSA (version 0.1.3)

termColours: Constructs colour vector for model terms

Description

Constructs colour vector for model terms

Usage

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

Value

a vector of colours. Residuals are given a grey color

Arguments

f

a model fit with term labels

pal

use this palette

Examples

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

Run the code above in your browser using DataLab