PolyGenius
Contents

visualize$models$reuse

Distribution of variant reuse across models

Histogram of how many models each harmonized variant appears in, one bar per integer count. A long tail toward high counts indicates a core of widely shared variants; a mass at one indicates model-specific variants. The y-axis is pseudo-log10, so the tall single-model bar and the sparse high-reuse tail are both readable.

Usage

visualize.models.reuse(models, palette = NULL, theme = c("polygenius", "none"))

Arguments

ArgumentDescription
modelsA PGSLibrary or a single PGS. Any other class, or an empty PGS library, aborts. A set spanning two genome builds is refused by the backbone accessor.
paletteBar fill: NULL (default) or a single colour (name or hex, e.g. "darkgreen") fills every bar flat; two or more colours (e.g. c("lightgrey", "darkgreen")) or a colorRampPalette-style ramp function fills them with a gradient keyed to bar height, taller bars at the high end of the ramp. Anything else aborts. See [visualize](/reference/visualize/).
themeOne of "polygenius" (default), "none". Plot theme. "none" gives a bare theme_minimal() to style yourself; palette colors are applied either way.

Value

A ggplot object, so it composes with +. Loci in the shared variant dictionary that no model carries are excluded, so the x-axis starts at 1.

Examples

visualize$models$reuse(models)

See Also

visualize$models$top.variants to name the variants in the high-reuse tail; visualize$genome$reuse to place them on the genome.

Other visualize-models: visualize.models.sizes(), visualize.models.top.variants(), visualize.models.uniqueness()

Aliases: visualize.models.reuse, visualize$models$reuse, visualize_models_reuse