gg_boxcox: Plot boxcox graph in ggplot with suggested lambda...

View source: R/gg_boxcox.R

gg_boxcoxR Documentation

Plot boxcox graph in ggplot with suggested lambda transformation

Description

Plot boxcox graph in ggplot with suggested lambda transformation

Usage

gg_boxcox(fitted.lm, showlambda = TRUE, lambdaSF = 3, scale.factor = 0.5)

Arguments

fitted.lm

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

showlambda

logical; controls whether lambda value should be displayed on graph. Defaults to TRUE

lambdaSF

numeric; controls to how many significant figure is lambda rounded to. Defaults to 3.

scale.factor

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

Value

A ggplot object that contains boxcox graph

Examples

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


lindia documentation built on Aug. 11, 2023, 1:09 a.m.

Related to gg_boxcox in lindia...