A function to launch the Exploratory Regression Shiny App
exploreReg( ERmfull, ERdata = NULL, ERbarcols = RColorBrewer::brewer.pal(4, "Set2"), npcpCols = 4, pvalOrder = F, tablesOnly = F, displayHeight = NULL, gadget = TRUE, viewer = "dialogViewer" )
the result
the lm fit to be explored
the data used to fit the model. If NULL, attempts to extract from ERmfull.
a vector of colours, one per term in lm. Will be expanded via colorRampPalette if not the correct length.
number of colours for the PCP
if TRUE, re-arranges predictors in order of p-value
if TRUE, shows Plots 1-3 only.
supply a value for the display height
If TRUE, constructs a gadget, otherwise a shinyApp.
For gadget, defaults to "dialogViewer". May be "paneViewer" or "browserViewer"
f <- lm(mpg ~ hp+wt+disp, data=mtcars) if (FALSE) exploreReg(f)
Run the code above in your browser using DataLab