SNPs_scatter_plot: Scatter plot for SNPs vs. one intermediate in the analysis

View source: R/helper.R

SNPs_scatter_plotR Documentation

Scatter plot for SNPs vs. one intermediate in the analysis

Description

To generate the scatter plot of the SNPs vs. one intermediate that the user use in the analysis

Usage

SNPs_scatter_plot(alphas, betas.Gy, X.label = NULL)

Arguments

alphas

The effects of SNPs on the intermediate (i.e. exposure/risk factor) (Gx).

betas.Gy

The betas in the paper: the marginal effects of SNPs on the phenotype (Gy)

X.label

The label of the intermediate (i.e. exposure/risk factor). Default is NULL.

Value

A set of scatter plots with x-axis being the conditional \alpha estimates for each intermediate and y-axis being the \beta estimates.

Author(s)

Lai Jiang

Examples

data(MI)
SNPs_scatter_plot(alphas = MI.Amatrix[, 1], betas.Gy = MI.betas.gwas, X.label = "BMI")

USCbiostats/hJAM documentation built on Jan. 26, 2024, 5:27 p.m.