Learn R Programming

DSsim (version 1.1.4)

Region-class: Class "Region"

Description

Class "Region" is an S4 class containing descriptions of the study area. The polygons describing the region are found in the coords slot and any gaps are described as polygons in the gaps slot.

Arguments

Slots

region.name

Object of class "character"; giving the name of the region.

strata.name

Object of class "character"; character vector giving the names of the strata.

strata.name

Object of class "character"; character vector giving the names of the strata.

units

Object of class "character"; character describing the coordinate units ("km" or "m")

area

Object of class "numeric"; the area of the survey region

box

Object of class "numeric"; 4 values giving the x and y ranges of the region

coords

Object of class "list"; this list contains an element for each strata. Each of these list elements contains a list of polygons defining the region.

gaps

Object of class "list";this list contains an element for each strata. Each of these list elements contains a list of gaps in the region

Objects from the Class

Objects can be created by calls of the form make.region(region.name = "region.name", shapefile = region.shapefile)

Methods

get.area

signature(obj = "Region"): retrieves the area element

plot

signature(x = "Region", y = "missing"): plots the survey region defined by the object.

See Also

make.region