plotlm: Plot 2D regression line with confidence intervals

View source: R/plotlm.r

plotlmR Documentation

Plot 2D regression line with confidence intervals

Description

Plot 2D regression line with confidence intervals

Usage

plotlm(x, y, data = NULL, prediction = FALSE, ...)

Arguments

prediction

if TRUE, prediction intervals are drawn

Author(s)

JuG

Examples

nbPoints = 20
x <-seq(1,10, length = nbPoints)
y <- 3 * x + rnorm(nbPoints, 0,6) + 10
plotlm(x,y,ylim=c(0,50),main="plotlm example",prediction=T)

jgodet/utilitR documentation built on April 13, 2025, 11:16 p.m.