ERSA (version 0.1.3)

exploreReg: A function to launch the Exploratory Regression Shiny App

Description

A function to launch the Exploratory Regression Shiny App

Usage

exploreReg(
  ERmfull,
  ERdata = NULL,
  ERbarcols = RColorBrewer::brewer.pal(4, "Set2"),
  npcpCols = 4,
  pvalOrder = F,
  tablesOnly = F,
  displayHeight = NULL,
  gadget = TRUE,
  viewer = "dialogViewer"
)

Value

the result

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

gadget

If TRUE, constructs a gadget, otherwise a shinyApp.

viewer

For gadget, defaults to "dialogViewer". May be "paneViewer" or "browserViewer"

Examples

Run this code
f <- lm(mpg ~ hp+wt+disp, data=mtcars)
if (FALSE) exploreReg(f)

Run the code above in your browser using DataLab