z_plot | R Documentation |
Creates a Z-score plot for SNPs, where Z = b / SE. This should follow a parabollic shape and so can be used to find certain SNPs which may not follow this shape. If 'plotly' is installed, the plot will be returned interactive.
z_plot( dat, snp_col = "SNP", beta_col = "beta.exposure", se_col = "se.exposure", pval_col = "pval.exposure", force_static = FALSE )
dat |
A data.frame of data |
snp_col |
Column of SNP names (Optional) |
beta_col |
Column of MR beta estimates (Optional) |
se_col |
Column of standard errors for the beta estimates (Optional) |
pval_col |
Column of P values (Optional) |
force_static |
True for forcing the plot to be returned as a static plot (Optional) |
Plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.