pac.resid | R Documentation |
A visualization technique in R for regression analysis results, specifically residual values, based on a restricted radial coordinate system. It provides a broad view perspective on the performance of regression models, and supports most model inputs.
pac.resid(
x,
y,
title,
taxis,
model = lm(y ~ x, data = data.frame(x, y)),
color1 = "gold",
standardize = FALSE
)
x, y |
Numeric data |
title |
Figure title |
taxis |
Vector with the first entry being the axis label and the second entry being units |
model |
An object for which the extraction of model residuals is meaningful. |
color1 |
Color value as string or rgb |
standardize |
Boolean to standardize the residual value |
Pac-Man residual plot
data("cars")
x <- cars$dist
y <- cars$speed
pac.resid(x,y, 'Example 2',
c("Temperature",'degC'),
color1="lightblue",
standardize=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.