Skip to contents

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.

Usage

build_bot_halfeyeplot(
  HapObject,
  epsilon,
  hide_labels = TRUE,
  isolate_group = NA
)

Arguments

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.

Value

A ggplot2 object.

Examples


build_bot_halfeyeplot(HapObject, epsilon = 0.6, hide_labels = FALSE)