mdsPlot: MDSplot in statTarget

Description Usage Arguments Value Author(s) See Also Examples

View source: R/statTarget_rforest.R

Description

Multi-dimensional scaling plot of proximity matrix from randomForest.

Usage

1
2
mdsPlot(rForest,pimpModel,Labels = TRUE,slink = FALSE, 
slinkDat, ...)

Arguments

rForest

An object of class randomForest that contains the proximity component from statTarget_rForest function.

pimpModel

An object of permutation-based variable Gini importance measures (PIMP-algorithm) from statTarget_rForest function.

Labels

Labels is TRUE for visible the sample name in the figure else with the index for class.

slink

Logical indicating if slinkDat is active for extenal classID.

slinkDat

A data frame for the extenal classID.

...

A generic MDSplot function in randomForest package

Value

The output of cmdscale on 1 - rf$proximity is returned invisibly.

Author(s)

Hemi Luan, hemi.luan@gmail.com

See Also

MDSplot

Examples

1
2
3
4
5
datpath <- system.file('extdata',package = 'statTarget')
statFile <- paste(datpath,'data_example.csv', sep='/')
getFile <- read.csv(statFile,header=TRUE)
rFtest <- rForest(getFile,ntree = 10,times = 5)
mdsPlot(rFtest$randomForest,rFtest$pimpTest)

13479776/statTarget documentation built on Aug. 14, 2020, 1:58 p.m.