## ------------------------------------------------------------------------
library(LAB4S)
## ------------------------------------------------------------------------
example <- linreg(formula = Petal.Length~Species, data = iris)
## ------------------------------------------------------------------------
example$print()
## ------------------------------------------------------------------------
example$plot()
## ------------------------------------------------------------------------
head(example$resid())
## ------------------------------------------------------------------------
head(example$pred())
## ------------------------------------------------------------------------
example$coef()
## ------------------------------------------------------------------------
example$summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.