View source: R/plot.gg_sdependent.R
| plot.gg_sdependent | R Documentation |
gg_sdependent objectRanked 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.
## S3 method for class 'gg_sdependent'
plot(x, ...)
x |
A |
... |
Not currently used. |
A ggplot object.
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.
gg_sdependent(), gg_udependent(), gg_beta_uvarpro().
if (requireNamespace("varPro", quietly = TRUE)) {
set.seed(1)
o <- varPro::uvarpro(mtcars, ntree = 50)
plot(gg_sdependent(o))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.