plotDim3DStoreView: Store a 3D view for plotDim3D

Description Usage Arguments Value

View source: R/plot-dim-3D.R

Description

This allows storing "views" which contain the information about which dimensionality reduction, dimensions, weights, and 3D orientation to use to make plots. This is useful for generating figures with many similar panels.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plotDim3DStoreView(
  object,
  view.name,
  reduction.use = c("dm", "pca"),
  dim.1 = 1,
  dim.2 = 2,
  dim.3 = 3,
  w.1 = NULL,
  w.2 = NULL,
  w.3 = NULL
)

Arguments

object

An URD object

view.name

(Character) What the name of the view should be.

reduction.use

(Character) Dimensionality reduction to use (Diffusion Map ("dm") or PCA ("pca"))

dim.1

(Numeric vector) Component(s) to use on x-axis. If > 1, they will be interpolated according to weights in w.1.

dim.2

(Numeric vector) Component(s) to use on y-axis. If > 1, they will be interpolated according to weights in w.2.

dim.3

(Numeric vector) Component(s) to use on z-axis. If > 1, they will be interpolated according to weights in w.3.

w.1

(Numeric vector) Weight to use for the members of dim.1. Defaults to equal weights for all members. Important to note that these can be negative to reverse the contribution of particular dimensions.

w.2

(Numeric vector) Weight to use for the members of dim.1. Defaults to equal weights for all members. Important to note that these can be negative to reverse the contribution of particular dimensions.

w.3

(Numeric vector) Weight to use for the members of dim.1. Defaults to equal weights for all members. Important to note that these can be negative to reverse the contribution of particular dimensions.

Value

An URD object with a new 3D view stored in @plot.3d.


farrellja/URD documentation built on June 17, 2020, 4:48 a.m.