ERSA (version 0.1.3)

createERServer: A function which returns a shiny server for Exploratory Regression

Description

A function which returns a shiny server for Exploratory Regression

Usage

createERServer(
  ERfit,
  ERdata = NULL,
  ERbarcols = RColorBrewer::brewer.pal(4, "Set2"),
  ERnpcpCols = 4,
  pvalOrder = F
)

Value

a function

Arguments

ERfit

the lm fit to be explored

ERdata

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

ERbarcols

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

ERnpcpCols

number of colours for the PCP

pvalOrder

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