powered by
plot a linear regression figure and return a list of parameters.
plotlm(x, y, xlim = range(as.numeric(x), na.rm = TRUE), ylim = range(as.numeric(y), na.rm = TRUE), plot.title = "linear regression", xlab = "x", ylab = "y", refline = FALSE, slope = 1, intercept = 0, showr2 = TRUE, showleg = TRUE)
numeric
character
logical. if a reference line is plotted
slope of refline
intercept of refline
logical
a figure
# NOT RUN { plotlm(1:10, 1:10 + rnorm(10)) # }
Run the code above in your browser using DataLab