plot_LD | R Documentation |
Plot LD vs distance
plot_LD(r2, map, max.pair = 10000, dof = 8)
r2 |
squared correlation matrix |
map |
data frame with 3 columns (marker, chrom, position) |
max.pair |
maximum number of r2 pairs for the spline |
dof |
degrees of freedom for the spline |
A monotone decreasing, convex spline is fit using R package scam
. The input matrix r2
should have rownames attribute that matches marker names in the first column of map
.
List containing
ggplot object
data frame with fitted values for the spline
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.