Learn R Programming

SciencesPo (version 0.11.21)

resplot: Plot of residues

Description

Produces a nice residues plot using ggplot

Usage

resplot(model)

Arguments

model
A linear model object

encoding

UTF-8

References

Hadley Wickham (2009) ggplot2: elegant graphics for data analysis. Springer, New York.

Examples

Run this code
y <- rnorm(100); x <- rnorm(100)
mod <- lm(y ~ x)
resplot(mod)

Run the code above in your browser using DataLab