Plots the Accumulated Local Effects (ALE) from an ERF object
an ALE object for a given variable; indexed as a list for full functionality
lower and upper quantile bounds to limit x values to
lower, middle, and upper quantiles to plot the confidence interval around the ALE predictions
the x-axis label of the variable; self-supplied if indexed as a list
the cex of the axis
the cex of the labels
logical for turning the rug plot on/off (defaults to table values for class=='factor')
color of rug ticks
length of rug ticks
width of rug ticks
transparency of rug ticks
maximum number of ticks to plot (useful for big data)
A plot of the ALEs
#run an ERF with 10 RFs and
ens_rf_ex <- ens_random_forests(df=simData$samples, var="obs", covariates=grep("cov", colnames(simData$samples),value=T), save=FALSE, cores=1)
#> rounding n.forests to the nearest one
ALE_df <- ALE_fn(ens_rf_ex, save=FALSE)
#> Error in ALE_fn(ens_rf_ex, save = FALSE): unused argument (save = FALSE)
plot_ALE(ALE_df[1])
#> Error in eval(expr, envir, enclos): object 'ALE_df' not found