powered by
compPlot( x, y, lim = NULL, ... )
plot
x <- rnorm( 25 ) y <- 2 + 3 * x + rnorm( 25 ) ols <- lm( y ~ x ) compPlot( y, fitted( ols ) ) compPlot( y, fitted( ols ), lim = c( -6, 10 ) ) compPlot( y, fitted( ols ), pch = 20 )
Run the code above in your browser using DataLab