rf_prep: A function to create Random Forests output in preparation for...

Description Usage Arguments Value Note Author(s) References See Also Examples

Description

A funciton using Random Forests which outputs a list of the Random Forests output, the predictor variables data, and response variable data.

Usage

1
rf_prep(x, y, ...)

Arguments

x

A data frame or a matrix of predictors.

y

A response vector. If a factor, classification is assume, otherwise regression is assumed. If omitted, randomForest will run in unsupervised mode.

...

Optional parameters to be passed down to the randomForest function. Use ?randomForest to see the optional parameters.

Value

The parallel coordinate plots of the input data, the local importance scores, and the 2-D XYZ classic multidimensional scaling proximities from the output of the random forest algorithm.

Note

For instructions on how to use randomForests, use ?randomForest. For more information on loon, use ?loon.

For detailed instructions in the use of these plots in this package, visit https://github.com/chrisbeckett8/rfviz/blob/master/Rfviz.md

Author(s)

Chris Beckett chrisbeckett8@gmail.com, based on original Java graphics by Leo Breiman and Adele Cutler.

References

Liaw A, Wiener M (2002). “Classification and Regression by randomForest.” _R News_, *2*(3), 18-22. https://CRAN.R-project.org/doc/Rnews/

Waddell A, Oldford R. Wayne (2018). "loon: Interactive Statistical Data Visualization" https://github.com/waddella/loon

Breiman, L. (2001), Random Forests, Machine Learning 45(1), 5-32.

Breiman, L (2002), “Manual On Setting Up, Using, And Understanding Random Forests V3.1”, https://www.stat.berkeley.edu/~breiman/Using_random_forests_V3.1.pdf

Breiman, L., Cutler, A., Random Forests Graphics. https://www.stat.berkeley.edu/~breiman/RandomForests/cc_graphics.htm

See Also

randomForest, rf_viz, l_plot, l_serialaxes

Examples

1
2
3
4
5
#Preparation for classification with Iris data set
rfprep <- rf_prep(x=iris[,1:4], y=iris$Species)

#Preparation for Regression with mtcars data set
rfprep <- rf_prep(x=mtcars[,-1], y=mtcars$mpg)

rfviz documentation built on May 2, 2019, 1:42 p.m.