plot_pca | R Documentation |
Highchart version of sample PCA plot
plot_pca(
object,
intgroup = "trt",
tooltip,
label,
ntop = 500,
relevel,
pc = c(1, 2),
scale = FALSE,
ggplot = FALSE,
...
)
object |
a matrix, ExpressionSet or DESeqTransform object |
intgroup |
a character vector of names from colData(object) or pData(object) for ExpressionSets for grouping, default 'trt' |
tooltip |
a character vector of names in colData(object) for tooltip display, default is id column |
label |
a name in colData(object) for ggplot labels |
ntop |
number of top variable genes to use for principal components |
relevel |
reorder intgroup levels, default is alphabetical |
pc |
a vector of components to plot, default 1st and 2nd |
scale |
option to scale variables in prcomp, default FALSE |
ggplot |
plot ggplot version, default FALSE |
... |
additional options passed to |
A highchart
Chris Stubben
plot_pca(pasilla$rlog, "condition", tooltip=c("file", "type"))
plot_pca(pasilla$rlog, "condition", label="file", ggplot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.