plotParallel: Parallel coordinate plot of a data set

View source: R/spotPlot.R

plotParallelR Documentation

Parallel coordinate plot of a data set

Description

Parallel plot based on ggparcoord.

Usage

plotParallel(
  result,
  xlab = NULL,
  ylab = NULL,
  yrange = NULL,
  splineFactor = 1,
  colorOption = "A",
  scale = "uniminmax",
  boxplot = FALSE,
  alphaLines = 0.1,
  showPoints = TRUE,
  title = "",
  probs = seq(0.25, 0.75, 0.25),
  ...
)

Arguments

result

the result list returned by spot, importantly including the data x, y.

xlab

character, the value of the independent variable

ylab

character, the value of the dependent variable predicted by the corresponding model.

yrange

a two-element vector that specifies the range of y values to consider (data outside of that range will be excluded).

splineFactor

logical or numeric operator indicating whether spline interpolation should be used. Numeric values will multiplied by the number of columns, TRUE will default to cubic interpolation, AsIs to set the knot count directly and 0, FALSE, or non-numeric values will not use spline interpolation. See ggparcoord. Default: "A".

colorOption

A character string indicating the colormap option to use. Four options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), "viridis" (or "D", the default option) and "cividis" (or "E"). See scale_colour_viridis_d

scale

method used to scale the variables. Default: "uniminmax".

boxplot

logical operator indicating whether or not boxplots should underlay the distribution of each variable

alphaLines

value of alpha scaler for the lines of the parcoord plot or a column name of the data. Default: 0.1

showPoints

logical operator indicating whether points should be plotted or not. Default: TRUE

title

character string denoting the title of the plot. Default: "".

probs

quantile probabilities. Default: seq(0, 1, 0.25)

...

additional parameters to be passed to ggparcoord.

Value

plotly parallel coordinate plot ('parcoords') visualization (based on plot_ly)

See Also

plotFunction, plotData

Examples


require("SPOT")
res <- spot(x=NULL,
             funSphere,
             lower=rep(-1,3),
             upper=rep(1,3),
             control=list(funEvals=25))
plotParallel(res, scale="std")


SPOTMisc documentation built on Sept. 5, 2022, 5:06 p.m.