Description Usage Arguments Value Examples
scatter plot with nice defaults. automatically tests for a linear association between your two variables, draws regression lines, prints stats to the plot, etc.
1 2 3 |
x |
vector of data for the x axis |
y |
vector of data for the y axis |
xlab |
x label |
ylab |
y label |
line |
logical. draw regression line? defaults to T |
stats |
logical. compute sample size, p-value for regression slope, and r squared value and print to the corner of the graph? defaults to TRUE |
color |
color of data points. defaults to "black" |
line_col |
color of regression line. defaults to "red" |
confidenceInterval |
logical. plot confidence bands about the slope? |
plottingCharacter |
type of plotting character. defaults to 16, i.e., solid point |
rug |
logical. plot a rug plot along the x and y axes? defaults to TRUE |
... |
other arguments to par() |
None
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.