| print.gg | R Documentation |
Each print.gg_*() method emits a single-line header containing the
class label and, when available, forest provenance metadata (source package,
family, ntree, n). The object is returned invisibly so print() calls
chain cleanly in pipes.
## S3 method for class 'gg_error'
print(x, ...)
## S3 method for class 'gg_vimp'
print(x, ...)
## S3 method for class 'gg_rfsrc'
print(x, ...)
## S3 method for class 'gg_variable'
print(x, ...)
## S3 method for class 'gg_partial'
print(x, ...)
## S3 method for class 'gg_partial_rfsrc'
print(x, ...)
## S3 method for class 'gg_partialpro'
print(x, ...)
## S3 method for class 'gg_roc'
print(x, ...)
## S3 method for class 'gg_survival'
print(x, ...)
## S3 method for class 'gg_brier'
print(x, ...)
x |
A |
... |
Not currently used. |
To inspect rows use head(). To retrieve per-class diagnostics use
summary.gg.
The object x, invisibly.
summary.gg, autoplot.gg
set.seed(42)
airq <- na.omit(airquality)
rf <- randomForestSRC::rfsrc(Ozone ~ ., data = airq, ntree = 50)
print(gg_error(rf))
print(gg_vimp(rf))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.