gg_resfitted: Generate residual plot of residuals against fitted value

View source: R/gg_resfitted.R

gg_resfittedR Documentation

Generate residual plot of residuals against fitted value

Description

Generate residual plot of residuals against fitted value

Usage

gg_resfitted(fitted.lm, scale.factor = 1)

Arguments

fitted.lm

a fitted linear model (i.e. lm, glm) that contains fitted regression

scale.factor

numeric; scales the point size and linewidth to allow customized viewing. Defaults to 1.

Value

A ggplot object

Examples

library(MASS)
data(Cars93)
cars_lm <- lm(Price ~ Passengers + Length + RPM, data = Cars93)
gg_resfitted(cars_lm)


yeukyul/lindia documentation built on Aug. 26, 2023, 1:35 a.m.