graph_metrics | R Documentation |
Plot out a set of metrics describing the state of an experiment including library sizes, # non-zero genes, heatmaps, boxplots, density plots, pca plots, standard median distance/correlation, and qq plots.
graph_metrics(
expt,
cormethod = "pearson",
distmethod = "euclidean",
title_suffix = NULL,
qq = NULL,
ma = NULL,
cv = NULL,
gene_heat = NULL,
...
)
expt |
an expt to process |
cormethod |
The correlation test for heatmaps. |
distmethod |
define the distance metric for heatmaps. |
title_suffix |
Text to add to the titles of the plots. |
qq |
Include qq plots? |
ma |
Include pairwise ma plots? |
cv |
Include coefficient of variance plots? (they are slow) |
gene_heat |
Include a heatmap of the gene expression data? |
... |
Extra parameters optionally fed to the various plots |
a loooong list of plots including the following:
nonzero = a ggplot2 plot of the non-zero genes vs library size
libsize = a ggplot2 bar plot of the library sizes
boxplot = a ggplot2 boxplot of the raw data
corheat = a recordPlot()ed pairwise correlation heatmap of the raw data
smc = a recordPlot()ed view of the standard median pairwise correlation of the raw data
disheat = a recordPlot()ed pairwise euclidean distance heatmap of the raw data
smd = a recordPlot()ed view of the standard median pairwise distance of the raw data
pcaplot = a recordPlot()ed PCA plot of the raw samples
pcatable = a table describing the relative contribution of condition/batch of the raw data
pcares = a table describing the relative contribution of condition/batch of the raw data
pcavar = a table describing the variance of the raw data
qq = a recordPlotted() view comparing the quantile/quantiles between the mean of all data and every raw sample
density = a ggplot2 view of the density of each raw sample (this is complementary but more fun than a boxplot)
[plot_nonzero()] [plot_legend()] [plot_libsize()] [plot_disheat()] [plot_corheat()] [plot_topn()] [plot_pca()] [plot_sm()] [plot_boxplot()]
## Not run:
toomany_plots <- graph_metrics(expt)
toomany_plots$pcaplot
norm <- normalize_expt(expt, convert = "cpm", batch = TRUE, filter_low = TRUE,
transform = "log2", norm = "rle")
holy_asscrackers <- graph_metrics(norm, qq = TRUE, ma = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.