Contents
visualize$models$uniqueness
Per-model variant uniqueness
Histogram of the fraction of each model's variants that appear in no other
model. A model near 1 is largely idiosyncratic; a model near 0 is built
almost entirely from shared variants.
Usage
visualize.models.uniqueness(
models,
bins = 30,
palette = NULL,
theme = c("polygenius", "none")
)Arguments
| Argument | Description |
|---|---|
models | A 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. |
bins | Numeric scalar, default 30. Number of histogram bins. |
palette | Bar 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/). |
theme | One 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 +. Fewer than two models
aborts, every variant being trivially unique in a single model. A model
contributing no usable rows -- every one strand-ambiguous, so dropped in
harmonization -- is excluded rather than plotted at zero.
Examples
visualize$models$uniqueness(models)See Also
visualize$models$reuse, the same shared-vs- specific split counted per variant instead of per model.
Other visualize-models:
visualize.models.reuse(),
visualize.models.sizes(),
visualize.models.top.variants()