plot.vimp.rfcca: Plot variable importance measures for rfcca objects

View source: R/plot.vimp.rfcca.R

plot.vimp.rfccaR 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 TRUE.

ndisp

Number of z-variables to display in the plot. If sort= TRUE, the most important ndisp z-variables will be plotted. Otherwise, the first ndisp z-variables in the original call will be plotted. The default value is NULL which will plot all of the z-variables.

...

Optional arguments to be passed to other methods.

Value

Invisibly, the variable importance measures that were plotted.

See Also

vimp.rfcca

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)


RFCCA documentation built on Sept. 19, 2023, 9:06 a.m.