build_left_alleleplot {crosshap} | R Documentation |
Left SNP-allele plot
Description
build_left_alleleplot() builds a horizontal plot displaying mean allelic frequencies (reference/alternate/missing/heterozygous) of all SNP loci, grouped by marker group. Makes use of $Varfile information from a HapObject created by run_haplotyping(). This is an internal function called by crosshap_viz(), though can be called separately to build a stand-alone plot.
Usage
build_left_alleleplot(HapObject, epsilon, hide_labels = TRUE)
Arguments
HapObject |
Haplotype object created by run_haplotyping(). |
epsilon |
Epsilon matching the haplotype object used for umap_in. |
hide_labels |
If TRUE, legend is hidden. |
Value
A ggplot2 object.
Examples
build_left_alleleplot(HapObject, epsilon = 0.6, hide_labels = FALSE)
[Package crosshap version 1.4.0 Index]