assoc_plot | R Documentation |
assoc_plot plots a scatter graph of associations (e.g. log10 p-values)
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
)
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 |
James R Staley <jrstaley95@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.