varImpPlot: Variable Importance Plot

Description Usage Arguments Value Author(s) See Also Examples

Description

Dotchart of variable importance as measured by the modified Random Forest algorithm implemented in snpRF.

Usage

1
2
3

Arguments

x

An object of class snpRF.

sort

Should the variables be sorted in decreasing order of importance?

n.var

How many variables to show? (Ignored if sort=FALSE.)

type, class, scale

arguments to be passed on to importance

main

plot title.

...

Other graphical parameters to be passed on to dotchart.

Value

Invisibly, the importance of the variables that were plotted.

Author(s)

Andy Liaw, with slight modifications for use with snpRF by Greg Jenkins

See Also

snpRF, importance

Examples

1
2
3
4
5
6
set.seed(4543)
data(snpRFexample)
eg.rf <- snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
               xchrom.names=xchrom.snps.names,x.covar=covariates, 
               y=phenotype,keep.forest=FALSE, importance=TRUE)
varImpPlot(eg.rf)

snpRF documentation built on May 2, 2019, 6:51 a.m.

Related to varImpPlot in snpRF...