View source: R/random-forest-model.R
Plot predictive map
1 2 | predictive_map(rf_model, data, facet_plot = FALSE, facet_by = "year",
lon_lat_names = list("lon", "lat"))
|
rf_model |
random forest model obtained from the function fit_random_forest. |
data |
data used to fit the random forest model |
facet_plot |
Should the plot be categorized? If TRUE, then the argument "facet_by" must be set. If FALSE, an average prediction is computed and plotted. Boolean |
facet_by |
variable to use in facet plots. Character. |
lon_lat_names |
names of latitude and longitude in the dataset. A list of characters. Defaults to list("lon", "lat") |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.