plotlm {beginr}R Documentation

plot a linear regression figure and return a list of parameters.

Description

plot a linear regression figure and return a list of parameters.

Usage

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)

Arguments

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

Value

a figure

Examples

plotlm(1:10, 1:10 + rnorm(10))


[Package beginr version 0.1.7 Index]