ggRandomForests: Visually Exploring Random Forests

Graphic elements for exploring Random Forests using 'randomForestSRC' and 'randomForest' for survival, regression, and classification forests, and 'varPro' for rule-based variable priority. Suggests 'randomForestRHF' for hazards with time-dependent covariates. Implements visualizations of the methods described in Breiman (2001) <doi:10.1023/A:1010933404324>, Ishwaran, Kogalur, Blackstone, and Lauer (2008) <doi:10.1214/08-AOAS169>, Lu and Ishwaran (2024) <doi:10.48550/arXiv.2409.09003>, and Ishwaran, Hsich, Kogalur, and Lee (2026) <doi:10.48550/arXiv.2608.21597>.

Version: 4.0.0
Depends: R (≥ 4.3.0)
Imports: randomForestSRC (≥ 3.4.0), randomForest, varPro (≥ 3.3.0), igraph, survival, tidyr, dplyr, ggplot2, patchwork, stringr
Suggests: bookdown, callr, covr, datasets, ggraph, kernelshap, knitr, lintr, magick, MASS, pkgdown, pkgload, quarto, ragg, randomForestRHF (≥ 2.0.3), RColorBrewer, rmarkdown, testthat, vdiffr, withr
Published: 2026-11-03
DOI: 10.32614/CRAN.package.ggRandomForests
Author: John Ehrlinger ORCID iD [aut, cre, cph]
Maintainer: John Ehrlinger <john.ehrlinger at gmail.com>
BugReports: https://github.com/ehrlinger/ggRandomForests/issues
License: MIT + file LICENSE
URL: https://github.com/ehrlinger/ggRandomForests, https://ehrlinger.github.io/ggRandomForests/
NeedsCompilation: no
SystemRequirements: Quarto command line tool (<https://github.com/quarto-dev/quarto-cli>)
Language: en-US
Citation: ggRandomForests citation info
Materials: README, NEWS
CRAN checks: ggRandomForests results

Documentation:

Reference manual: ggRandomForests.html , ggRandomForests.pdf
Vignettes: Explaining a forest: five views of a variable's effect (source, R code)
Random Forest Classification with ggRandomForests (source, R code)
Random Forest Regression with ggRandomForests (source, R code)
Random Forest Survival Analysis with ggRandomForests (source, R code)
Exploring Random Forests with ggRandomForests (source, R code)
Random Hazard Forests with ggRandomForests (source, R code)
Variable selection without an outcome: unsupervised varPro (source, R code)
varPro on small or sparse data (source, R code)
Exploring variable importance with varPro (source, R code)

Downloads:

Package source: ggRandomForests_4.0.0.tar.gz
Windows binaries: r-devel: ggRandomForests_3.5.5.zip, r-release: ggRandomForests_4.0.0.zip, r-oldrel: ggRandomForests_4.0.0.zip
macOS binaries: r-release (arm64): ggRandomForests_4.0.0.tgz, r-oldrel (arm64): ggRandomForests_4.0.0.tgz, r-release (x86_64): ggRandomForests_4.0.0.tgz, r-oldrel (x86_64): ggRandomForests_4.0.0.tgz
Old sources: ggRandomForests archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ggRandomForests to link to this page.