Learn R Programming

nima (version 0.5.0)

lmPlots_gg: Linear Model Diagnostic Plots with ggplot2

Description

Produce standard diagnostic plots for linear models using ggplot2.

Usage

lmPlots_gg(model)

Arguments

model

A linear model object produced by lm().

Examples

Run this code
# NOT RUN {
n <- 100; x1 <- rnorm(n); y1 <- rnorm(n);
linmod <- lm(y1 ~ x1)
lmPlots_gg(linmod)
# }

Run the code above in your browser using DataLab