exploreReg: A function to launch the Exploratory Regression Shiny App

Description Usage Arguments Value Examples

View source: R/helper.R

Description

A function to launch the Exploratory Regression Shiny App

Usage

1
2
3
exploreReg(ERmfull, ERdata = NULL,
  ERbarcols = RColorBrewer::brewer.pal(4, "Set2"), npcpCols = 4,
  pvalOrder = F, tablesOnly = F, displayHeight = NULL)

Arguments

ERmfull

the lm fit to be explored

ERdata

the data used to fit the model. If NULL, attempts to extract from ERmfull.

ERbarcols

a vector of colours, one per term in lm. Will be expanded via colorRampPalette if not the correct length.

npcpCols

number of colours for the PCP

pvalOrder

if TRUE, re-arranges predictors in order of p-value

tablesOnly

if TRUE, shows Plots 1-3 only.

displayHeight

supply a value for the display height

Value

the shiny server

Examples

1
2
f <- lm(mpg ~ hp+wt+disp, data=mtcars)
## Not run: exploreReg(f)

cbhurley/ERSA documentation built on Dec. 12, 2018, 7:41 p.m.