knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(RcourseLAB4) library(ggplot2)
linreg() function computes ordinary least squares. It calculates the following
linreg(formula = Petal.Length ~ Species, data = iris)
Methods for the linreg() class S3
summary(linreg(formula = Petal.Length ~ Species, data = iris))
There two themes for liu.
theme_liu1 has a white background for plots and has grids and axis of the liu blue theme_liu2 has a liu blue background and has white grids and axis. With both having axis numbers or scale in liu's grey color.
Both the themes are created using ggplot2. Custom themes can be made by passing specific arguments to the theme() function. A general data frame of faithful and iris has been used for giving an example of how plots look like.
RcourseLAB4::theme_liu1() RcourseLAB4::theme_liu2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.