scat.lm | R Documentation |
To create a scatter plot with a linear regression line.
scat.lm(x, y, mt, xl, yl, w = c(7, 5), ...)
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. |
None.
scat.lm(mtcars$wt, mtcars$mpg, mt="Weight vs. MPG")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.