scat.lm: Scatter Plot with a Regression Line

View source: R/ch2-fn.R

scat.lmR Documentation

Scatter Plot with a Regression Line

Description

To create a scatter plot with a linear regression line.

Usage

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

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

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.