radialvis3d: 3D Radial Visualization function

View source: R/radviz3d.R

radialvis3dR Documentation

3D Radial Visualization function

Description

3D Radial Visualization function

Usage

radialvis3d(
  data,
  domrp = T,
  doGtrans = F,
  sqrt_scale = F,
  cl = NULL,
  color = NULL,
  pch = 16,
  colorblind = FALSE,
  axes = FALSE,
  point.cex = 1,
  with.coord.labels = T,
  coord.labels = NULL,
  coord.font = 2,
  coord.cex = 1.1,
  with.class.labels = T,
  class.labels = levels(factor(cl)),
  class.labels.locations = NULL,
  opt.anchor.order = FALSE,
  alpha = 0.02,
  lwd = 1,
  axes.col = "black",
  ret.trans = FALSE,
  ...
)

Arguments

data

The dataset to visualize. Each row is an observation.

domrp

Logical. If true, MRP is applied to the origianl dataset. The default number of PCs used is npc = 4.

doGtrans

Logical. If true, Gtrans is applied to the origianl dataset. @seealso Gtrans.

sqrt_scale

Logical. If true, the distance of the points to be visualization will be augmented to squre root of the orginal distance to make points further away from the origin.

cl

The class identification for each observation. The length of cl should be the same as the number of rows of data. If specified, different classes would be visualized with different colors.

color

The colors for different classes. If not specified, rainbow is used.

pch

The point character to be used. It is an integer of a vector of integers of the same length of the nrow of the dataset. See points for a complete list of characters.

colorblind

Logical.The colors for different classes.If true, poits are colorblind friendly.If false, rainbow is used.

axes

Logical.If true, Cartesian axes would be plotted.

point.cex

The size of the data point in RadViz3D. The default value is 1.

with.coord.labels

Logical. If true, labels of coordinates will be added to the visualization.

coord.labels

The labels for components of the dataset. When domrp = TRUE, the coord.labels will be changed to "Xi" representing the the ith direction obtained with MRP.

coord.font

The font for labels of components.

coord.cex

The size of the labels of components.

with.class.labels

Logical. If true, class labels will be added to the visualization.

class.labels

The labels for different classes in the dataset.

class.labels.locations

Locations to put labels for each class. If not specified, an optimal location for each class would be calculated.

opt.anchor.order

Logical. If true, the optimal order of anchor points corresponding to the components would be calculated. This is a very time consuming procedure. Not recommended if the number of components is larger then 6.

alpha

The alpha value that controls the transparency of the sphere in 3d visulization

lwd

The line width in the visualization

axes.col

Colors of the axes, if needed to be displayed

ret.trans

Logical parameter, returns the Radviz3D transformation if TRUE

...

Some other parameters from mrp and Gtrans and rgl functions.

Value

A list with the elements

mrp.res

The result of MRP is the argument domrp = TRUE. See also mrp.

Examples

radialvis3d(data = iris[,-5], cl = iris[,5], domrp = T)

fanne-stat/radviz3d documentation built on Aug. 24, 2022, 9:50 p.m.