I am using random Forest in R and only want to Plot the
When I do
plot(myModel, log = "y") I get a diagram where each of my class is a line. On the
x-axis are the
ntree while on the
x-Axis there is the Error rate.
When I try
plot(myModel$err.rate, log = "y") I get this:
Why is there no line like the ones above?
err.rate is stored in a matrix where the first column is the
OOB Error. Each class gets its own column.
To access the
err.rate do this
myModel $err.rate[,1], for plotting simply