ggForestPlot: Compare effect sizes of a gene across all datasets in...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ggForestPlot.R

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

1
2
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

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

Example output

Warning messages:
1: Removed 2 rows containing missing values (geom_errorbarh). 
2: Removed 2 rows containing missing values (geom_point). 

MetaIntegrator documentation built on March 26, 2020, 6:29 p.m.