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

Description Usage Arguments Value See Also Examples

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

Description

Plots variable importance measures (VIMP) for subject-related z-variables for training data.

Usage

1
2
## 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 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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 Feb. 4, 2021, 1:06 a.m.