add_regres_line: Add a regression line and confidence interval to a plot

Description Usage Examples

Description

Add a regression line and confidence interval to a plot

Usage

1
2
add_regres_line(fit, from = NULL, to = NULL, band = TRUE,
  bandcolor = alpha("lightgrey", 0.8), ...)

Examples

1
2
fit <- lm(height ~ age, data=Loblolly)
with(Loblolly, plot(age, height, panel.first=add_regres_line(fit)))

RemkoDuursma/plover documentation built on May 9, 2019, 9:39 a.m.