plot_degrees: Plot locus degrees

View source: R/plot_degrees.R

plot_degreesR Documentation

Plot locus degrees

Description

Barplot of the degrees of loci across the genome.

Usage

plot_degrees(arch, xaxis = "location", rm_x = TRUE)

Arguments

arch

A data frame containing locus-wise genetic architecture data (see ?read_architecture)

xaxis

What to show on the x-axis. Either of "location" for genomic location (continuous between 0 and 1) or "locus" for locus index.

rm_x

Whether to remove the x-axis entirely

Value

A ggplot

See Also

read_architecture

Examples


root <- system.file("extdata", "sim-example", package = "speciomer")
arch <- read_architecture(root)$nodes
plot_degrees(arch)


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.