plot.RRF | R Documentation |
Plot the error rates or MSE of a RRF object
## S3 method for class 'RRF' plot(x, type="l", main=deparse(substitute(x)), ...)
x |
an object of class |
type |
type of plot. |
main |
main title of the plot. |
... |
other graphical parameters. |
Invisibly, the error rates or MSE of the RRF
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.
This function does not work for RRF
objects that have
type=unsupervised
.
If the x
has a non-null test
component, then the test
set errors are also plotted.
Andy Liaw
RRF
data(mtcars) plot(RRF(mpg ~ ., mtcars, keep.forest=FALSE, ntree=100), log="y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.