zz_plot: ZZ plot

View source: R/zz_plot.R

zz_plotR Documentation

ZZ plot

Description

Calculate Z scores from the reported P values (Zp) and the reported log odds ratios (Zlnor). Construct a scatter plot of Zp and Zlnor

Usage

zz_plot(
  dat = NULL,
  Title = "ZZ plot",
  Ylab = "Z score inferred from p value",
  Xlab = "Z score inferred from effect size and standard error",
  beta = "lnor",
  se = "lnor_se",
  exclude_1000G_MAF_refdat = TRUE,
  publication_quality = FALSE
)

Arguments

dat

the target dataset of interest

Title

plot title

Ylab

label for Y axis

Xlab

label for X axis

beta

the name of the column containing the SNP effect size

se

the name of the column containing the standard error for the SNP effect size

exclude_1000G_MAF_refdat

exclude rsids from the 1000 genome MAF reference dataset.

publication_quality

produce a very high resolution image e.g. for publication purposes. Default FALSE

Value

plot


MRCIEU/mrQC documentation built on May 6, 2023, 1:40 p.m.