gg_qqplot: Plot quantile-quantile plot (QQPlot) in ggplot with qqline...

View source: R/gg_qqplot.R

gg_qqplotR Documentation

Plot quantile-quantile plot (QQPlot) in ggplot with qqline shown.

Description

Plot quantile-quantile plot (QQPlot) in ggplot with qqline shown.

Usage

gg_qqplot(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 qqplot with fitted qqline

Examples

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

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

Related to gg_qqplot in lindia...