termColours | R Documentation |
Constructs colour vector for model terms
termColours(f, pal = RColorBrewer::brewer.pal(4, "Set2"))
f |
a model fit with term labels |
pal |
use this palette |
a vector of colours. Residuals are given a grey color
termColours(lm(mpg ~ wt+hp, data=mtcars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.