Description Usage Arguments Value Author(s) See Also Examples
A forest plot can be used to compare the expression values of a gene across different datasets. The area of the blue boxes is proportional to the number of samples in the study and black lines indicate the standard error of the effect sizes for each study (by default the 95% confidence interval). The summary effect size for all studies is indicated as an orange diamond below and the width of the diamond indicates the summary standard error.
1 2 | ggForestPlot(metaObject, genes, confLevel = 0.95, facetCols = NULL,
facetScales = "free_x", boxScales = c(6, 16))
|
metaObject |
a filtered metaObject, i.e. it needs to include a |
genes |
character vector containing the genes for which the forest plot should be generated |
confLevel |
confidence level |
facetCols |
integer that specifies how many columns are going to be used for the plot |
facetScales |
same as ggplot's facet_wrap: should Scales be fixed ("fixed", the default), free ("free"), or free in one dimension ("free_x", "free_y") |
boxScales |
a numeric vector of length 2 providing scaling factors for the plot. Specifies minimum and maximum size. |
ggplot2 Plot comparing effect sizes of a gene across datasets
Winston A. Haynes, Jiaying Toh, Michele Donato
filterGenes
, runMetaAnalysis
, violinPlot
1 2 | # compare effect sizes of the Gene1 for all discovery datasets in tinyMetaObject
ggForestPlot(tinyMetaObject, genes="Gene1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.