interpolate.points: Interpolate dimensionality reduction dimensions

Description Usage Arguments Value

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

Description

Allows for fitting more than three dimensions into a dimensionality reduction plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
interpolate.points(
  raw.coordinates,
  coord.prefix = "DC",
  dim.1,
  dim.2,
  dim.3,
  w.1 = rep(1/length(dim.1), length(dim.1)),
  w.2 = rep(1/length(dim.2), length(dim.2)),
  w.3 = rep(1/length(dim.3), length(dim.3)),
  rows.subset = NULL
)

Arguments

raw.coordinates

(data.frame) Rows are cells, and columns are dimensions to use for interpolation.

coord.prefix

(Character) Append this prefix to the dimensions

dim.1

(Character vector) Dimensions to interpolate as dimension 1

dim.2

(Character vector) Dimensions to interpolate as dimension 2

dim.3

(Character vector) Dimensions to interpolate as dimension 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.2. 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.3. Defaults to equal weights for all members. Important to note that these can be negative to reverse the contribution of particular dimensions.

rows.subset

(Character vector) Which rows to subset before interpolating. (Default NULL uses all rows.)

Value

nrows x 3 data.frame, where > 3 dimensions have been interpolated to produce a 3-dimensional embedding.


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