View source: R/plot.eda_rline.R
plot.eda_rline | R Documentation |
A plot method for lists of eda_rline
class.
## S3 method for class 'eda_rline'
plot(
x,
type = "model",
xlab = NULL,
ylab = NULL,
grey = 0.7,
pch = 21,
equal = TRUE,
p.col = "grey50",
p.fill = "grey80",
size = 0.8,
alpha = 0.7,
model = TRUE,
pt3 = TRUE,
fit = TRUE,
...
)
x |
Object of class |
type |
Plot type. One of two: "model", "residuals". |
xlab |
Custom x-axis label. Defaults to column name. |
ylab |
Custom y-axis label. Defaults to column name. |
grey |
Grey level to apply to plot elements (0 to 1 with 1 = black). |
pch |
Point symbol type. |
equal |
Boolean determining if axes lengths should match (i.e. square plot). |
p.col |
Color for point symbol. |
p.fill |
Point fill color passed to |
size |
Point size (0-1). |
alpha |
Point transparency (0 = transparent, 1 = opaque). Only applicable
if |
model |
Boolean indicating if the resulting model should be added above
plot. Only applies to |
pt3 |
Boolean indicating if the 3-pt summaries should be added to the
plot. Only applies to |
fit |
Boolean indicating if the fitted line should be added to the plot. |
... |
Arguments to be passed to subsequent methods. |
The function generates a scatter plot with the fitted model from an
eda_rline
object.
Does not return a value.
r.lm <- eda_rline(age_height, Months, Height)
plot(r.lm)
plot(r.lm, pt3 = FALSE)
plot(r.lm, type = "residuals")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.