plot.gg_sdependent: Plot a 'gg_sdependent' object

View source: R/plot.gg_sdependent.R

plot.gg_sdependentR Documentation

Plot a gg_sdependent object

Description

Ranked lollipop of the per-variable sdependent() signal score, sorted descending so the strongest signal lands at the top. Points are colored blue for variables flagged as signal (signal == TRUE) and gray otherwise.

Usage

## S3 method for class 'gg_sdependent'
plot(x, ...)

Arguments

x

A gg_sdependent object from gg_sdependent().

...

Not currently used.

Value

A ggplot object.

Reading the chart

Each lollipop is a variable's signal score from varPro::sdependent(), computed on the unsupervised entropy-region lasso structure of a varPro::uvarpro() fit. Blue variables cleared the detection threshold and are reported in sdependent()$signal.vars; gray ones did not. Pair with gg_udependent() (the dependency graph) to see how the signal variables connect, and with gg_beta_uvarpro() for the lasso-importance ranking.

See Also

gg_sdependent(), gg_udependent(), gg_beta_uvarpro().

Examples


if (requireNamespace("varPro", quietly = TRUE)) {
  set.seed(1)
  o <- varPro::uvarpro(mtcars, ntree = 50)
  plot(gg_sdependent(o))
}



ggRandomForests documentation built on Aug. 4, 2026, 5:09 p.m.