tmodPanelPlot(x, pie = NULL, clust = "qval", filter.empty.cols = FALSE,
filter.empty.rows = TRUE, filter.unknown = TRUE, filter.by.id = NULL,
col.labels = NULL, row.labels = NULL, pval.thr = 10^-2,
plot.func = NULL, grid = "at", pie.colors = c("#0000FF", "#cccccc",
"#FF0000"), plot.cex = 1, text.cex = 1, pie.style = "pie",
col.labels.style = "top", legend.style = "auto", ...)
tmodPanelPlot shows a heatmap-like plot. Each row corresponds to one module, and columns correspond to the time points or conditions for which the tmod analyses were run. Each significantly enriched module is shown as a red dot. Size of the dot corresponds to the effect size (for example, AUC in the CERNO test), and intensity of the color corresponds to the q-value.
By default, tmodPanelPlot visualizes each the results of a single statistical test by a red dot. However, it is often interesting to know how many of the genes in a module are significantly up- or down regulated. tmodPanelPlot can draw a pie chart based on the optional argument "pie". The argument must be a list of length equal to the length of x. Objects returned by the function tmodDecideTests can be directly used here. The rownames of either the data frame or the array must be the module IDs.
data(Egambia)
E <- Egambia[,-c(1:3)]
pca <- prcomp(t(E), scale.=TRUE)
# Calculate enrichment for first 5 PCs
gs <- Egambia$GENE_SYMBOL
gn.f <- function(r) {
o <- order(abs(r), decreasing=TRUE)
tmodCERNOtest(gs[o],
qval=0.01)
}
x <- apply(pca$rotation[,3:4], 2, gn.f)
tmodPanelPlot(x, text.cex=0.7)
Run the code above in your browser using DataLab