stack_assoc_plot: stack_assoc_plot

View source: R/figures.R

stack_assoc_plotR Documentation

stack_assoc_plot

Description

stack_assoc_plot plots stacked regional association plots

Usage

stack_assoc_plot(
  markers,
  z,
  corr = NULL,
  corr.top = NULL,
  traits,
  ylab = NULL,
  type = "log10p",
  x.min = NULL,
  x.max = NULL,
  top.marker = NULL,
  legend = TRUE
)

Arguments

markers

data.frame of markers with markername (marker), chromosome (chr) and position (pos)

z

matrix of Z-scores or probabilities with one column for each trait

corr

matrix of correlation statistics between markers

corr.top

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

traits

trait names

ylab

the y-axis label

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.