scat.lm: Scatter Plot with a Regression Line

Description Usage Arguments Value Examples

View source: R/ch2-fn.R

Description

To create a scatter plot with a linear regression line.

Usage

1
scat.lm(x, y, mt, xl, yl, w = c(7, 5), ...)

Arguments

x

Vector of x variable.

y

Vector of y variable.

mt

Title of the plot.

xl

Label of x-axis.

yl

Label of y-axis.

w

Size of graphic window. Default: c(7, 5)

...

Other graphic parameters.

Value

None.

Examples

1
scat.lm(mtcars$wt, mtcars$mpg, mt="Weight vs. MPG")

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.