eda_add | R Documentation |
eda_add
adds graphical EDA elements to a scatter plot.
Currently only adds eda_rline
fit and points.
eda_add(
x,
pch = 24,
p.col = "darkred",
p.fill = "yellow",
lty = 1,
l.col = "darkred"
)
x |
Object of class |
pch |
Point symbol type. |
p.col |
Point color passed to |
p.fill |
Point fill color passed to |
lty |
Line type. |
l.col |
Line color. |
This function adds an eda_rline slope and 3-pt summary points to an existing scatter plot.
See the Resistant Line article for a
detailed breakdown of the resistant line technique.
Returns the eda_rline
intercept and slope.
a
: Intercept
b
: Slope
eda_lm(mtcars, x = wt, y = mpg)
Mr <- eda_rline(mtcars, x=wt, y=mpg)
eda_add(Mr, l.col = "blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.