scatter | R Documentation |
This function plots a scatterplot (scatter) on a given data frame, and adds a fit-line to the data.
scatter(df, var1, var2, lab = FALSE)
df |
data frame to read in. |
var1 |
the dependent/outcome variable, |
var2 |
the independent/predictor variable, |
lab |
logical (default set to |
data <- mtcars
scatter(data,mpg,wt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.