#---------------------------------------------------------------------
# iris data - classification random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_iris, package="ggRandomForests")
# The var.select call
varsel_iris <- var.select(rfsrc_iris)
# plot the forestminimal depth ranking
gg_dta <- gg_minimal_depth(varsel_iris)
plot(gg_dta)
#---------------------------------------------------------------------
# airq data - regression random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_airq, package="ggRandomForests")
# The var.select call
varsel_airq <- var.select(rfsrc_airq)
# plot the forestminimal depth ranking
gg_dta <- gg_minimal_depth(varsel_airq)
plot(gg_dta)
#---------------------------------------------------------------------
# mtcars data - regression random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_mtcars, package="ggRandomForests")
# The var.select call
varsel_mtcars <- var.select(rfsrc_mtcars)
# plot the forestminimal depth ranking
gg_dta <- gg_minimal_depth(varsel_mtcars)
plot(gg_dta)
#---------------------------------------------------------------------
# MASS::Boston data - regression random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_Boston, package="ggRandomForests")
# The var.select call
varsel_Boston <- var.select(rfsrc_Boston)
# plot the forestminimal depth ranking
gg_dta <- gg_minimal_depth(varsel_Boston)
plot(gg_dta)
#---------------------------------------------------------------------
# randomForestSRC::pbc data - survival random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_pbc, package="ggRandomForests")
# The var.select call
varsel_pbc <- var.select(rfsrc_pbc)
# plot the forestminimal depth ranking
gg_dta <- gg_minimal_depth(varsel_pbc)
plot(gg_dta)
#---------------------------------------------------------------------
# randomForestSRC::veteran data - survival random forest
#---------------------------------------------------------------------
#' # load the rfsrc object from the cached data
data(rfsrc_veteran, package="ggRandomForests")
# The var.select call
varsel_veteran <- var.select(rfsrc_veteran)
# plot the forestminimal depth ranking
gg_dta <- gg_minimal_depth(varsel_veteran)
plot(gg_dta)
Run the code above in your browser using DataLab