plotlm | R Documentation |
Plot 2D regression line with confidence intervals
plotlm(x, y, data = NULL, prediction = FALSE, ...)
prediction |
if TRUE, prediction intervals are drawn |
JuG
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.