haplo_freq | R Documentation |
Plots the frequency of individuals with haplotype dosage above a threshold
haplo_freq(
data,
haplotypes,
dosage,
id = NULL,
position = "cM",
chrom = NULL,
markers = NULL
)
data |
Variable inheriting from class |
haplotypes |
Names of haplotypes |
dosage |
Dosage threshold |
id |
Vector of id names (default is entire population) |
position |
Either "cM" (default) or "bp" for plotting |
chrom |
Names of chromosomes (default is all) |
markers |
Optional, markers to indicate with dashed line. Only available when plotting a single chromosome. |
Useful for visualizing selection in selfed populations. For multiple chromosomes, each haplotype is shown in its own panel using facet_wrap. For one chromosome, the haplotypes are shown on the same set of axes.
List containing
Data frame with the map and frequency
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.