Skip to contents

This function calculates the total number of species occurrence records as a time series.

Usage

total_occ_ts(data, ...)

Arguments

data

A data cube object (class 'processed_cube').

...

Arguments passed on to compute_indicator_workflow

cell_size

Length of grid cell sides, in km. (Default: 10 for country, 100 for continent or world)

level

Spatial level: 'continent', 'country', or 'world'. (Default: 'continent')

region

The region of interest (e.g., "Europe"). (Default: "Europe")

output_crs

The CRS you want for your calculated indicator. (Leave blank to let the function choose a default based on grid reference system)

first_year

Exclude data before this year. (Uses all data in the cube by default.)

last_year

Exclude data after this year. (Uses all data in the cube by default.)

spherical_geometry

If set to FALSE, will temporarily disable spherical geometry while the function runs. Should only be used to solve specific issues. (Default is TRUE)

make_valid

Calls st_make_valid() from the sf package. Increases processing time but may help if you are getting polygon errors. (Default is FALSE).

Value

An S3 object with the classes 'indicator_ts' and 'total_occ' containing the calculated indicator values and metadata.

See also

compute_indicator_workflow

Examples

to_ts <- total_occ_ts(example_cube_1, first_year = 1985)
plot(to_ts)