zonation: Run the program zonation from R

Description Usage Arguments Functions Examples

Description

Run the zonation software for conservation planning on a set of files or raster objects and return the output as a list.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
zonation(
  features,
  params = NULL,
  settings = NULL,
  dir = NULL,
  alpha = 0,
  dist_smooth = FALSE,
  kernel_width_mult = 1,
  command_args = NULL,
  additional_settings = NULL
)

## S4 method for signature 'RasterStack'
zonation(
  features,
  params = NULL,
  settings = NULL,
  dir = NULL,
  alpha = 0,
  dist_smooth = FALSE,
  kernel_width_mult = 1,
  command_args = NULL,
  additional_settings = NULL
)

## S4 method for signature 'RasterBrick'
zonation(
  features,
  params = NULL,
  settings = NULL,
  dir = NULL,
  alpha = 0,
  dist_smooth = FALSE,
  kernel_width_mult = 1,
  command_args = NULL,
  additional_settings = NULL
)

## S4 method for signature 'character'
zonation(
  features,
  params = NULL,
  settings = NULL,
  dir = NULL,
  alpha = 0,
  dist_smooth = FALSE,
  kernel_width_mult = 1,
  command_args = NULL,
  additional_settings = NULL
)

Arguments

features

RasterStack or file paths of the raster files for features in the conservation plan.

params

a matrix of feature parameter values. Matrix must have 5 columns and one row for each feature. If unset all values default to 1.See Zonation manual for details.

settings

a named list of settings equivalent to the zonation settings file (see zonation manual for details and list of settings)

dir

a directory to house tmp files.

alpha

numeric uncertainty parameter.

dist_smooth

logical. should distribution smoothing be used.

kernel_width_mult

numeric. factor to multiply feature dispersal kernel widths by.

command_args

character string of command line arguments. See zonation manual for details.

additional_settings

additional settings.

Functions

Examples

1
2
3
4
library(raster)
r1 <- raster(matrix(runif(200^2, 0, 1), 200))
r2 <- raster(matrix(runif(200^2, 0, 1), 200))
plan <- zonation(stack(r1, r2))

wkmor1/rzonation documentation built on Jan. 18, 2020, 4:47 a.m.