plotLD: Plot LD Matrix

View source: R/genomic_matrix.R

plotLDR Documentation

Plot LD Matrix

Description

Visualizes the linkage disequilibrium (LD) matrix using a color gradient. The function produces an image plot with custom color mapping.

Usage

plotLD(LD = NULL, cols = NULL)

Arguments

LD

A matrix representing the LD values to be plotted. Each element should be a numeric value, typically between 0 and 1, representing the degree of LD. Rows and columns of the matrix should correspond to specific genetic markers (e.g., SNPs).

cols

A color palette to use for the plot. By default, it creates a blue gradient ranging from light blue ('#f0f3ff') to dark blue ('#0033BB').

Value

A plot visualizing the LD matrix. Row and column names of the LD matrix are used as labels on the x and y axes, respectively.


psoerensen/qgg documentation built on March 9, 2024, 10:02 p.m.