stack_assoc_plot | R Documentation |
stack_assoc_plot plots stacked regional association plots
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
)
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 |
James R Staley <jrstaley95@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.