R/mf.R
mf_lm.Rd
plot a linear regression figure and return a list of parameters. in: two vectors. out: a figure and a list.
mf_lm(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)
refline | logical, reference line |
---|---|
slope | slope of refline |
intercept | of refline |
showr2 | logical |
showleg | logical |
a figure