For a given eBird Status and Trends species, produce a box plot showing the predictor importance (PI) for each of the predictors used in the occurrence model. Predictors are plotted in order from highest to lowest importance. Many function parameters allow for customized plots.

plot_pis(
pis,
ext,
by_cover_class = TRUE,
n_top_pred = 20,
pretty_names = TRUE,
plot = TRUE
)

## Arguments

pis

data frame; predictor importance data from load_pis().

ext

ebirdst_extent object; the spatiotemporal extent over which to calculate PIs. This is required, since results are less meaningful over large spatiotemporal extents.

by_cover_class

logical; whether to aggregate the FRAGSTATS metrics (PLAND and ED) for the land cover classes into single values for the land cover classes.

n_top_pred

integer; how many predictors to show.

pretty_names

logical; whether to convert cryptic land cover codes to readable land cover class names.

plot

## Value

Plots a boxplot of predictor importance and invisibly returns a named vector of top predictors, and their median predictor importance, based on the n_top_pred parameter.

## Examples

if (FALSE) {