assoc_plot: assoc_plot

View source: R/figures.R

assoc_plotR Documentation

assoc_plot

Description

assoc_plot plots a scatter graph of associations (e.g. log10 p-values)

Usage

assoc_plot(
  data,
  corr = NULL,
  corr.top = NULL,
  ylab = NULL,
  title = NULL,
  subtitle = NULL,
  type = "log10p",
  x.min = NULL,
  x.max = NULL,
  top.marker = NULL,
  legend = TRUE
)

Arguments

data

data.frame with markername (marker), chromosome (chr), position (pos) and either z-statistics (z) or probabilities (prob) columns

corr

correlation matrix between markers

corr.top

correlation statistics between the top marker and the rest of the markers

ylab

the y-axis label

title

title of the plot

subtitle

subtitle of the plot

type

the type of the plot either log10p or probabilities

x.min

start of region

x.max

end of region

top.marker

the top associated marker, i.e. the marker with the largest -log10p or probability

legend

add r2 legend

Author(s)

James R Staley <jrstaley95@gmail.com>


jrs95/gassocplot documentation built on April 2, 2024, 7:11 p.m.