knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(RcourseLAB4)
library(ggplot2)

R package that has a function for linear regression using S3 class

linreg() function computes ordinary least squares. It calculates the following

linreg(formula = Petal.Length ~ Species, data = iris)

Methods for the linreg() class S3

summary method for linreg

summary(linreg(formula = Petal.Length ~ Species, data = iris))

LiU theme

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()


aashana94/RcourseLAB4 documentation built on May 9, 2019, 8:12 a.m.