I want to obtain the optimal number of trees for random forest by plotting the OOB error vs. Number of trees and see at which point the error plateaus. However, as my problem in