plot_ly_pca: Create a PCA plot with plotly

View source: R/plot.R

plot_ly_pcaR Documentation

Create a PCA plot with plotly

Description

Generate a PCA 3D or 2D plot with plotly

Usage

plot_ly_pca(mtx, covariate_data, threeD = TRUE, cov_default = NULL)

Arguments

mtx

PCA matrix (typically prcomp(...)$x)

covariate_data

data frame with covariates to display (character, factor or continuous)

threeD

if FALSE, a 2D plot will be produced

cov_default

default covariate names (must be names of columns of covariate_data)

Value

the plotly object


bihealth/bioshmods documentation built on July 1, 2023, 4:32 a.m.