forest_plot: Forest plot

Description Usage Arguments Value Examples

Description

It makes a forest plot for gene-environment interactions (GxE) across multiple sub-studies for all the SNPs in a set (e.g., a gene).

Usage

1

Arguments

coef

a matrix contains the GxE effect sizes. Each row corresponds to a SNP in a set, and each column represents a study. If the matrix has colnames and/or rownames for SNPs and studies respectively, they will be used as labels in the forest plot.

se

a matrix contains the standard errors for the GxE effect estimates. Each row corresponds to a SNP in a set, and each column represents a study.

sort

logical. If TRUE, the SNPs are sorted by averaged effect sizes across different studies. The default is TRUE.

exp

logical. If TRUE, coef will be exponentiated. This option is mainly used for log odds ratios obtained from logistic regressions. The default is FALSE.

Value

A forest plot across multiple sub-studies for all the SNPs in a set (e.g., a gene).

Examples

1
2
3
4
coef = matrix(rnorm(6 * 6), 6, 6)
se = matrix(abs(runif(6 * 6, 0.1, 0.15)), 6, 6)

forest_plot(coef, se)

lschen-stat/ofGEM documentation built on May 14, 2019, 11:28 a.m.