plotGeneticDist: plotGeneticDist

View source: R/plot-genetic-dist.R

plotGeneticDistR Documentation

plotGeneticDist

Description

Plotting the calculated genetic distanced for each bin or marker interval supplied by the GRanges object

Usage

plotGeneticDist(gr, bin = TRUE, chr = NULL, cumulative = FALSE)

Arguments

gr

GRanges object with genetic distances calculated for marker intervals

bin

TRUE or FALSE, indicating whether the supplied GRange objecct is for binned interval

chr

the specific chrs selected to plot

cumulative

TRUE or FALSE, indicating whether it plots the bin-wise genetic distances or the cumulative distances

Value

ggplot2 plot

Author(s)

Ruqian Lyu

Examples

data(coCount)
dist_se <- calGeneticDist(coCount)
plotGeneticDist(SummarizedExperiment::rowRanges(dist_se))

ruqianl/comapr documentation built on Oct. 27, 2023, 5:12 a.m.