Skip to contents

Organise Data

Functions to get data organised

splnr_get_IUCNRedList()
Match Species to IUCN RedList
splnr_get_MPAs()
Get marine parks from the WDPA.
splnr_get_boundary()
Get the boundary of the planning region.
splnr_get_distCoast()
Function to compute distances to nearest coastline for each centroid of each planning unit in the 'sf' object provided.
splnr_get_featureRep()
Prepare data to plot how well targets are met
splnr_get_gfw()
The get_gfwData function recover the data of Global Fishing Watch and returns it as a sf object.
splnr_get_kappaCorrData()
Prepare data to plot Cohen's Kappa correlation matrix
splnr_get_selFreq()
Prepare data to plot Selection Frequency of planning units

Assign Targets

Functions to assign targets by various methods

splnr_targets_byCategory()
Assign targets to all features by category
splnr_targets_byIUCN()
Assign targets bu IUCN Red List categories
splnr_targets_byInverseArea()
Assign targets by Inverse Area

Climate-smart

Functions to create climate-smart prioritisations

splnr_climate_featureApproach()
Function to run the feature approach
splnr_climate_percentileApproach()
Function to run the percentile approach
splnr_climate_priorityAreaApproach()
Function to run the climate-priority-area approach

Plotting

Functions for plotting.

splnr_plot()
Function to plot data.
splnr_plot_MPAs()
Plot MPAs
splnr_plot_binFeature()
Plot binary feature
splnr_plot_circBplot()
Plot circular barplot
splnr_plot_climData()
Plot climate data
splnr_plot_climKernelDensity()
Kernel Density Plots for climate-smart spatial plans
splnr_plot_comparison()
Plot solution comparison
splnr_plot_corrMat()
Plot correlation matrices
splnr_plot_cost()
Plot cost
splnr_plot_costOverlay()
Plot cost overlay
splnr_plot_featureNo()
Plot number of features
splnr_plot_featureRep()
Plot how well targets are met
splnr_plot_importanceScore()
Plot importance score
splnr_plot_selectionFreq()
Plot selection frequency of a planning unit in an array of prioritisations
splnr_plot_solution()
Plot prioritizr solution
splnr_gg_add()
Add-ons for plotting

Utilities

Helper functions.

splnr_apply_cutoffs()
Function to apply cutoffs to feature data
splnr_arrangeFeatures()
Ensure all features are in the same order.
splnr_convert_regionalisation() deprecated
Function to interpolate regionalisation data onto Planning Units
splnr_convert_toPUs() deprecated
Function to interpolate data onto Planning Units
splnr_create_polygon()
Function for creating polygon
splnr_replace_NAs()
Remove NAs from spatial data using nearest neighbour
splnr_scale_01()
Scale spatial layers to between 0 and 1
splnr_featureNames()
Returns the feature names
splnr_match_names()
Substitute numbers for all_names in regionalisations

Built in datasets

dat_PUs
Planning Units
dat_bathy
Bathymetry Data
dat_bndry
Boundary of planning units
dat_category
Category vector
dat_category2
Category vector
dat_clim
Climate metric data
dat_mpas
MPA Data
dat_region
Regionalisation
dat_species_bin
Binary Species Data
dat_species_bin2
Binary Species Data 2
dat_species_prob
Probability Species Data
CoralSeaVelocity
Example climate velocity for the example region of the coral sea
IUCN_IA_Targets
IUCN and Inverse Area based Targets for Aquamaps example species
MPAsCoralSea
Current MPAs of the Coral Sea
spDataFiltered
Example data