View source: R/bot_halfeyeplot.R
build_bot_halfeyeplot | R Documentation |
build_bot_halfeyeplot() builds a vertical plot displaying the phenotypic scores for each individual, grouped by haplotype, coloured by metadata variable. Metadata groups can be isolated using the isolate_groups argument. Makes use of the $Indfile information from haplotype object. It is an internal function called by crosshap_viz(), though can be called separately to build a stand-alone plot.
build_bot_halfeyeplot(
HapObject,
epsilon,
hide_labels = TRUE,
isolate_group = NA
)
HapObject |
Haplotype object created by run_haplotyping(). |
epsilon |
Epsilon to visualize haplotyping results for. |
hide_labels |
If TRUE, legend is hidden. |
isolate_group |
If a Metadata group is provided, all other Metadata groups will be masked from the plot. NOTE: it does change the summary tables or marker group phenotype scores. |
A ggplot2 object.
build_bot_halfeyeplot(HapObject, epsilon = 0.6, hide_labels = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.