Description Usage Arguments Value Author(s) Examples
nice plot using ggplot2 from prcomp function
1 2 3 4 5 6 7 8 9 10 |
counts |
matrix with count data |
metadata |
dara.frame with sample information |
condition |
character column in metadata to use to color samples |
pc1 |
character PC to plot on x-axis |
pc2 |
character PC to plot on y-axis |
name |
character if given, column in metadata to print label |
shape |
character if given, column in metadata to shape points |
data |
Whether return PCA data or just plot the PCA. |
if results <-
used, the function return the output
of prcomp()
.
Lorena Pantano, Rory Kirchner, Michael Steinbaugh
1 2 3 4 5 6 7 | data(humanGender)
library(DESeq2)
idx <- c(1:10, 75:85)
dse <- DESeqDataSetFromMatrix(assays(humanGender)[[1]][1:1000, idx],
colData(humanGender)[idx,], design=~group)
degPCA(log2(counts(dse)+0.5), colData(dse),
condition="group", name="group", shape="group")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.