Plots the important variables in a random forest model.
# S3 method for rfor_model
plot(x, y, ...)
A random forest object.
Object of class "rf_model".
Ignored.
Further specifications for plot.
Gilberto Camara, gilberto.camara@inpe.br
if (sits_run_examples()) {
# Retrieve the samples for Mato Grosso
# train a random forest model
rf_model <- sits_train(samples_modis_ndvi, ml_method = sits_rfor())
# plot the model
plot(rf_model)
}
Run the code above in your browser using DataLab