plot_LD: Plot LD vs distance

View source: R/plot_LD.R

plot_LDR Documentation

Plot LD vs distance

Description

Plot LD vs distance

Usage

plot_LD(r2, map, max.pair = 10000, dof = 8)

Arguments

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

Details

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.

Value

List containing

plot

ggplot object

spline

data frame with fitted values for the spline


jendelman/MapRtools documentation built on April 12, 2025, 12:46 p.m.