condvis2 (version 0.1.1)

createCVServer: Title Creates a shiny server

Description

Title Creates a shiny server

Usage

createCVServer(
  CVfit,
  CVdata = NULL,
  response = NULL,
  sectionvars,
  conditionvars,
  predsInit = NULL,
  pointColor = NULL,
  cPlotPCP = FALSE,
  cPlotn = 1000,
  orderConditionVars,
  threshold = 1,
  thresholdmax,
  tours = NULL,
  linecols = NULL,
  dataplot = "pcp",
  probs,
  view3d,
  theta3d,
  phi3d,
  predictArgs,
  xlim = NULL,
  ylim = NULL,
  zlim = NULL,
  density = FALSE,
  showdata = TRUE
)

Value

a function

Arguments

CVfit

a list of fits

CVdata

the dataset used for the fit

response

name of response variable

sectionvars

names of at most two sectionvars

conditionvars

names of conditionvars

predsInit

starting value for predicts. Defaults to medoid.

pointColor

a color, or the name of variable to be used for coloring. If the named variable is numeric, it is first converted to a factor with 3 levels.

cPlotPCP

if TRUE, conditionplots are drawn as a single PCP (for more than two conditionvars)

cPlotn

Shows a sample of this number of points in conditionplots.

orderConditionVars

If supplied, a function to order the Condition Vars

threshold

used for similarity weights, defaults to 1.

thresholdmax

maximum value allowed of threshold.

tours

A list of pre-calculated tours

linecols

vector of colors to be used for fits

dataplot

"pcp" or "pairs". Used when there is no response, or more than two sectionvars.

probs

Logical; if TRUE, shows predicted class probabilities instead of just predicted classes.

view3d

Logical; if TRUE, includes option for a three-dimensional regression surface if possible.

theta3d, phi3d

Angles defining the viewing direction. theta3d gives the azimuthal direction and phi3d the colatitude. See persp.

predictArgs

a list with one entry per fit, giving arguments for CVpredict

xlim

passed on to sectionplot

ylim

passed on to sectionplot

zlim

passed on to sectionplot

density

default FALSE. Use TRUE if model is a density function.

showdata

If FALSE, data on section not shown.