shinyPCAtools | R Documentation |
Create an interactive Shiny app for PCAtools analysis and results exploration
shinyPCAtools(
mat,
metadata,
removeVar = 0.3,
scale = FALSE,
center = TRUE,
color.by = NULL,
shape.by = NULL,
annot.by = NULL,
height = 850
)
mat |
A matrix with features as rows and samples as columns. |
metadata |
A dataframe containing sample metadata. The rownames must match the column names of the matrix. |
removeVar |
Remove this % of variables based on low variance. |
scale |
Scale the data? Same as prcomp() 'scale' parameter. |
center |
Center the data before performing PCA? Same as prcomp() 'center' parameter. |
color.by |
A string containing the name of a sample metadata variable to be used to color points. |
shape.by |
A string containing the name of a sample metadata variable to be used to shape points. |
annot.by |
A string or character vector containing the names of sample metadata variables to be used for hover text. |
height |
Number indicating height of app in pixels. |
Features with no variation will be removed prior to pca
being run.
A Shiny app wrapped around most PCAtools functions and plots.
Jared Andrews
pca
, screeplot
,
biplot
, pairsplot
, eigencorplot
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.