mash_plot_marker_effect: ggplot of single mash effect

Description Usage Arguments Note

View source: R/mash-evaluation.R

Description

Creates a plot with point estimates and standard errors for effects of a single SNP in multiple conditions.

Usage

1
2
3
4
5
6
7
8
9
mash_plot_marker_effect(
  m,
  snp = snp,
  n = NA,
  i = NA,
  marker = TRUE,
  saveoutput = FALSE,
  suffix = ""
)

Arguments

m

An object of type mash

snp

A bigSNP object, produced by the bigsnpr package. Here, the WAMI SNP information.

n

Optional. Integer or integer vector. The result number to plot, in order of significance. 1 would be the top result, for example. Find these with get_significant_results.

i

Optional. Integer or integer vector. The result number to plot, in the order of the mash object. 1 would be the first marker in the mash object, for example. Find these with get_marker_df.

marker

Optional. Print the marker name on the plot?

saveoutput

Logical. Should the output be saved to the path?

suffix

Character. Optional. A unique suffix used to save the files, instead of the current date & time.

Note

Specify only one of n or i.


Alice-MacQueen/snpdiver documentation built on Dec. 17, 2021, 8:41 a.m.