plot.snpRF: Plot method for snpRF objects

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

Description

Plot the error rates or MSE of a snpRF object

Usage

1
2
## S3 method for class 'snpRF'
plot(x, type="l", main=deparse(substitute(x)), ...)

Arguments

x

an object of class snpRF.

type

type of plot.

main

main title of the plot.

...

other graphical parameters.

Value

Invisibly, the error rates or MSE of the snpRF object. If the object has a non-null test component, then the returned object is a matrix where the first column is the out-of-bag estimate of error, and the second column is for the test set.

Note

If the x has a non-null test component, then the test set errors are also plotted.

Author(s)

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

See Also

snpRF

Examples

1
2
3
4
data(snpRFexample)
plot(snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
           xchrom.names=xchrom.snps.names,x.covar=covariates,
           y=phenotype,keep.forest=TRUE), log="y")

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

Related to plot.snpRF in snpRF...