plot.vimp.rfcca {RFCCA} | R Documentation |
Plot variable importance measures for rfcca objects
Description
Plots variable importance measures (VIMP) for subject-related z-variables for training data.
Usage
## S3 method for class 'rfcca'
plot.vimp(x, sort = TRUE, ndisp = NULL, ...)
Arguments
x |
An object of class (rfcca,grow) or (rfcca,predict). |
sort |
Should the z-variables be sorted according to their variable
importance measures in the plot? The default is |
ndisp |
Number of z-variables to display in the plot. If |
... |
Optional arguments to be passed to other methods. |
Value
Invisibly, the variable importance measures that were plotted.
See Also
Examples
## load generated example data
data(data, package = "RFCCA")
set.seed(2345)
## train rfcca
rfcca.obj <- rfcca(X = data$X, Y = data$Y, Z = data$Z, ntree = 100,
importance = TRUE)
## plot vimp
plot.vimp(rfcca.obj)
[Package RFCCA version 2.0.0 Index]