Learn R Programming

ggRandomForests (version 3.5.0)

plot.gg_sdependent: 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 gg_sdependent
plot(x, ...)

Value

A ggplot object.

Arguments

x

A gg_sdependent object from gg_sdependent().

...

Not currently used.

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

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

Run the code above in your browser using DataLab