plot.qshap_rsq: Plot method for qshap_rsq objects

View source: R/vis_module.R

plot.qshap_rsqR Documentation

Plot method for qshap_rsq objects

Description

This S3 method enables 'plot(x, ...)' where 'x' is a 'qshap_rsq' object. It dispatches to the visualization functions in 'vis'.

Usage

## S3 method for class 'qshap_rsq'
plot(
  x,
  y = NULL,
  type = c("rsq", "elbow", "cumu", "gcorr", "hist", "density", "loss", "heatmap",
    "loss_heatmap"),
  ...
)

Arguments

x

A 'qshap_rsq' object.

y

Not used.

type

Plot type: one of "rsq", "elbow", "cumu", "gcorr", "hist", "density", "loss", or "heatmap". '"loss_heatmap"' is retained as an alias for '"heatmap"'.

...

Passed to the underlying visualization function.

Value

A ggplot2 object (invisibly).


qshap documentation built on Aug. 23, 2026, 5:11 p.m.