library("tinyplot")
# "lm" type convenience string
tinyplot(dist ~ speed, data = cars, type = "lm")
# Use `type_lm()` to pass extra arguments for customization
tinyplot(dist ~ speed, data = cars, type = type_lm(level = 0.9))
Type function for plotting a linear model fit. Arguments are passed to lm
.
type_lm(se = TRUE, level = 0.95)
se
|
logical. If TRUE, confidence intervals are drawn. |
level
|
the confidence level required. |