stack_assoc_plot: stack_assoc_plot

Description Usage Arguments Author(s)

View source: R/figures.R

Description

stack_assoc_plot plots stacked regional association plots

Usage

1
2
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

(Pearson) correlation matrix between markers (i.e. r not r2) with the markers ordered in the same way as in the markers data frame

corr.top

(Pearson) correlation statistics between the top marker and the rest of the markers (i.e. r not r2) with the markers ordered in the same way as in the markers data frame

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 marker to be annotated in the plot

legend

add r2 legend

Author(s)

James R Staley <jrstaley95@gmail.com>


jrs95/gassocplot documentation built on June 17, 2021, 8:52 a.m.