ggForestPlot {MetaIntegrator}R Documentation

Compare effect sizes of a gene across all datasets in meta-analysis

Description

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.

Usage

ggForestPlot(metaObject, genes, confLevel = 0.95, facetCols = NULL,
  facetScales = "free_x", boxScales = c(6, 16))

Arguments

metaObject

a filtered metaObject, i.e. it needs to include a filterObject generated by the function filterGenes()

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.

Value

ggplot2 Plot comparing effect sizes of a gene across datasets

Author(s)

Winston A. Haynes, Jiaying Toh, Michele Donato

See Also

filterGenes, runMetaAnalysis, violinPlot

Examples

# compare effect sizes of the Gene1 for all discovery datasets in tinyMetaObject 
ggForestPlot(tinyMetaObject, genes="Gene1")

[Package MetaIntegrator version 2.1.3 Index]