Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sim_data

Simulated conservation planning data


Description

Simulated data for making spatial prioritizations.

Usage

data(sim_pu_polygons)

data(sim_pu_zones_polygons)

data(sim_pu_points)

data(sim_pu_lines)

data(sim_pu_sf)

data(sim_pu_zones_sf)

data(sim_pu_raster)

data(sim_locked_in_raster)

data(sim_locked_out_raster)

data(sim_pu_zones_stack)

data(sim_features)

data(sim_features_zones)

data(sim_phylogeny)

Format

sim_pu_polygons

SpatialPolygonsDataFrame object.

sim_pu_zones_polygons

SpatialPolygonsDataFrame object.

sim_pu_sf

sf::sf() object.

sim_pu_zones_sf

sf::sf() object.

sim_pu_lines

SpatialLinesDataFrame object.

sim_pu_points

SpatialPointsDataFrame object.

sim_pu_raster

RasterLayer object.

sim_pu_zones_stack

RasterStack object.

sim_locked_in_raster

RasterLayer object.

sim_locked_out_raster

RasterLayer object.

sim_features

RasterStack object.

sim_features_zones

ZonesRaster() object.

sim_phylogeny

ape::phylo() object.

Details

sim_pu_raster

Planning units are represented as raster data. Pixel values indicate planning unit cost and NA values indicate that a pixel is not a planning unit.

sim_pu_zones_stack

Planning units are represented as raster stack data. Each layer indicates the cost for a different management zone. Pixels with NA values in a given zone indicate that a planning unit cannot be allocated to that zone in a solution. Additionally, pixels with NA values in all layers are not a planning unit.

sim_locked_in_raster

Planning units are represented as raster data. Pixel values are binary and indicate if planning units should be locked in to the solution.

sim_locked_out_raster

Planning units are represented as raster data. Pixel values are binary and indicate if planning units should be locked out from the solution.

sim_pu_polygons

Planning units represented as polygon data. The attribute table contains fields (columns) indicating the expenditure required for prioritizing each planning unit ("cost" field), if the planning units should be selected in the solution ("locked_in" field), and if the planning units should never be selected in the solution ("locked_out" field).

sim_pu_points

Planning units represented as point data. The attribute table follows the same conventions as for sim_pu_polygons.

sim_pu_lines

Planning units represented as line data. The attribute table follows the same conventions as for sim_pu_polygons.

sim_pu_sf

Planning units represented as polygon data using the sf::sf() package. The attribute table follows the same conventions as for sim_pu_polygons.

sim_pu_zones_polygons

Planning units represented as polygon data. The attribute table contains fields (columns) indicating the expenditure required for prioritizing each planning unit under different management zones ("cost_1", "cost_2", and "cost_3" fields), and a series of fields indicating the value that each planning unit that should be assigned in the solution ("locked_1", "locked_2", "locked_3" fields). In these locked fields, planning units that should not be locked to a specific value are assigned a NA value.

sim_pu_zones_sf

Planning units represented as polygon data using the sf::sf() package. The attribute tables follows the same conventions as for sim_pu_zone_polygons.

sim_features

The simulated distribution of ten species. Pixel values indicate habitat suitability.

sim_features_zones

The simulated distribution for five species under three different management zones.

sim_phylogeny

The phylogenetic tree for the ten species.

Examples

# load data
data(sim_pu_polygons, sim_pu_lines, sim_pu_points, sim_pu_raster,
     sim_locked_in_raster, sim_locked_out_raster, sim_phylogeny,
     sim_features, sim_pu_sf)

# plot example Spatial-class planning unit data
## Not run: 
par(mfrow = c(2, 3))
plot(sim_pu_raster, main = "planning units (raster)")
plot(sim_locked_in_raster, main = "locked in units (raster)")
plot(sim_locked_out_raster, main = "locked out units (raster)")
plot(sim_pu_polygons, main = "planning units (polygons)")
plot(sim_pu_lines, main = "planning units (lines)")
plot(sim_pu_points, main = "planning units (points)")

# plot example sf-class planning unit data
plot(sim_pu_sf)

# plot example phylogeny data
par(mfrow = c(1, 1))
ape::plot.phylo(sim_phylogeny, main = "simulated phylogeny")

# plot example feature data
par(mfrow = c(1, 1))
plot(sim_features)

# plot example management zone cost data
par(mfrow = c(1, 1))
plot(sim_pu_zones_stack)

# plot example feature data for each management zone
plot(do.call(stack, sim_features_zones),
     main = paste0("Species ",
                   rep(seq_len(number_of_zones(sim_features_zones)),
                       number_of_features(sim_features_zones)),
                   " (zone ",
                   rep(seq_len(number_of_features(sim_features_zones)),
                       each = number_of_zones(sim_features_zones)),
                   ")"))

## End(Not run)

prioritizr

Systematic Conservation Prioritization in R

v7.0.1
GPL-3
Authors
Jeffrey O Hanson [aut] (<https://orcid.org/0000-0002-4716-6134>), Richard Schuster [aut, cre] (<https://orcid.org/0000-0003-3191-7869>), Nina Morrell [aut], Matthew Strimas-Mackey [aut] (<https://orcid.org/0000-0001-8929-7776>), Matthew E Watts [aut], Peter Arcese [aut] (<https://orcid.org/0000-0002-8097-482X>), Joseph Bennett [aut] (<https://orcid.org/0000-0002-3901-9513>), Hugh P Possingham [aut] (<https://orcid.org/0000-0001-7755-996X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.