A function which returns a shiny server for Exploratory Regression
createERServer(
ERfit,
ERdata = NULL,
ERbarcols = RColorBrewer::brewer.pal(4, "Set2"),
ERnpcpCols = 4,
pvalOrder = F
)
a function
the lm fit to be explored
the data used to fit the model. If NULL, attempts to extract from ERfit.
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