Description Usage Arguments Value Examples
Plot of the selected signature's PCA using
ggplot2
.
1 2 |
data |
gene expression matrix where rownames correspond to unique gene
identifiers in |
signature |
character vector containing the signature's gene identifiers. |
groups |
optional factor variable indicating the groups that the observations belong to. |
text |
when TRUE it plots textual annotations instead of points
based on |
pcs |
which PCs to plot. default: 1,2 |
main |
plot title |
palette |
colorbrewer palette scheme to be used. |
... |
methods passed to |
A ggplot2 plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | dummyData <- do.call(rbind, lapply(seq(0.1, 0.9, by = 0.1),
rnorm, n = 100, m = 6))
#add a row with bimodal gene expression
dummyData <- rbind(dummyData, c(rnorm(70, 6, 0.1), rnorm(30, 9, 0.1)))
rownames(dummyData) <- paste(rep("gene", nrow(dummyData)),
seq(1, nrow(dummyData)), sep = "")
dummySig <- c("gene1", "gene8", "gene9", "gene10")
sigPlot(dummyData, dummySig)
groups <- factor(c(rep("GroupA", 70), rep("GroupB", 30)))
sigPlot(dummyData, dummySig, groups, main = "dummySig")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.