plot3d: PCA plot in 3D

Description Usage Arguments Value Note See Also Examples

Description

PCA plot in 3D

Usage

1
2
plot3d(obj, subset, col.color = 1, angle = 45, colors = c("violet", "turquoise"), 
  lty = 0, cex.points = 1, ...)

Arguments

obj

a corObject

subset

"miRNA" or "mRNA"

col.color

number or name of the column in the pheno slot that will be used to color the samples

angle

angle orientation

colors

character vector with the colors that will be used for each group in col.color.

lty

lty of lines that are plotted parallel to the z-axis for each sample. 0 means no line.

cex.points

cex scaling of the dots.

...

further arguments to be passed

Value

A 3d pca plot.

Note

This error:

Error in factor(as.numeric(as.factor(obj@pheno.miRNA[, col.color])) + : invalid 'labels'; length 2 should be 1 or 12

Is due to invalid length of colors option. Use character vectors with the same length of the number of groups in col.color.

See Also

plotPca

Examples

1
2

mariavica/mircomb documentation built on Feb. 3, 2020, 2:28 a.m.