Random forest code and plot output