plotlm | R Documentation |
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)
x |
numeric |
y |
numeric |
xlim |
numeric |
ylim |
numeric |
plot.title |
character |
xlab |
character |
ylab |
character |
refline |
logical. if a reference line is plotted |
slope |
slope of refline |
intercept |
intercept of refline |
showr2 |
logical |
showleg |
logical |
a figure
plotlm(1:10, 1:10 + rnorm(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.