write_bart_plots: Generate maps of BART SDM predictions

View source: R/write_bart_plots.R

write_bart_plotsR Documentation

Generate maps of BART SDM predictions

Description

This function writes plots using a combination of PDF and PNG outputs.

Usage

write_bart_plots(data, mean_theme, ci_theme)

Arguments

data

a RasterStack object returned by embarcadero::predict2.bart()

mean_theme

a rasterTheme used for plotting the mean probability SDM map

ci_theme

a rasterTheme used for plotting the posterior width (95% credible interval) SDM map

Details

The function writes 8 plots related to the species SDM predictions, both probability and binary surfaces. The species' occurrence points have been overlaid on certain plots. Plots are written to the species directory.

Value

The following plot files:

  1. SDM_mean_probability.pdf

  2. SDM_mean_probability.png

  3. SDM_posterior_width.pdf

  4. SDM_posterior_width.png

  5. SDM_four_panel_probability.pdf

  6. SDM_four_panel_binary.pdf

  7. SDM_mean_binary.pdf

  8. SDM_mean_binary.png

Note

There are several undeclared variables to take note of: BART_dir, tss_threshold, occ, num_occ_points, and occurence_points

Author(s)

Dominic Henry

Examples

## Not run: 
write_bart_plots(data = map, mean_theme = maptheme_mean, ci_theme = maptheme_ci)

## End(Not run)

DomHenry/SDMutils documentation built on Feb. 6, 2024, 8:51 p.m.