ld_plot: LD block heatmap

Description Usage Arguments Value Examples

View source: R/ld_plot.R

Description

ld_plot() is used to produce a graphical display, as a heat map, of pairwise linkage disequilibrium (LD) measurements for SNPs.

Usage

1
ld_plot(data, pos)

Arguments

data

A genotype frame of SNPs in HMP format

pos

The position of snps on chromosomes

Value

The file named LDheatmap.pdf will be generated in the current directory.

Examples

1
2
3
library(genetic) # 加载包
data("E5b_hmp") # 读取数据
ld_plot(E5b_hmp, E5b_hmp$pos) # 在当前文件夹下生成LDheatmap.pdf

liqingsongplus/Genetic-diversity documentation built on Dec. 21, 2021, 10:51 a.m.