#---------------------------------------------------------------------
# iris data - classification random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_iris, package="ggRandomForests")
# The interaction table
interaction_iris <- find.interaction(rfsrc_iris)
# plot the forest interaction table
gg_dta <- gg_interaction(interaction_iris)
plot(gg_dta, panel=TRUE)
#---------------------------------------------------------------------
# airq data - regression random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_airq, package="ggRandomForests")
# The interaction table
interaction_airq <- find.interaction(rfsrc_airq)
# plot the forest interaction table
gg_dta <- gg_interaction(interaction_airq)
plot(gg_dta, panel=TRUE)
#---------------------------------------------------------------------
# mtcars data - regression random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_mtcars, package="ggRandomForests")
# The interaction table
interaction_mtcars <- find.interaction(rfsrc_mtcars)
# plot the forest interaction table
gg_dta <- gg_interaction(interaction_mtcars)
plot(gg_dta, panel=TRUE)
#---------------------------------------------------------------------
# MASS::Boston data - regression random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_Boston, package="ggRandomForests")
# The interaction table
interaction_Boston <- find.interaction(rfsrc_Boston)
# plot the forest interaction table
gg_dta <- gg_interaction(interaction_Boston)
plot(gg_dta, panel=TRUE)
#---------------------------------------------------------------------
# randomForestSRC::pbc data - survival random forest
#---------------------------------------------------------------------
# load the rfsrc object from the cached data
data(rfsrc_pbc, package="ggRandomForests")
# The interaction table
interaction_pbc <- find.interaction(rfsrc_pbc)
# plot the forest interaction table
gg_dta <- gg_interaction(interaction_pbc)
plot(gg_dta, panel=TRUE)
#---------------------------------------------------------------------
# randomForestSRC::veteran data - survival random forest
#---------------------------------------------------------------------
#' # load the rfsrc object from the cached data
data(rfsrc_veteran, package="ggRandomForests")
# The interaction table
interaction_veteran <- find.interaction(rfsrc_veteran)
# plot the forest interaction table
gg_dta <- gg_interaction(interaction_veteran)
plot(gg_dta, panel=TRUE)
Run the code above in your browser using DataLab