allocPoly: allocPoly

View source: R/allocPoly.r

allocPolyR Documentation

allocPoly

Description

ALLOCATION by STRATIFIED RANDOM DESIGN based on bottom type (or another polygon based non-continuous stratifying variable)

Usage

allocPoly(
  poly.lst,
  bounding.poly,
  ntows,
  mindist = 1,
  pool.size = 4,
  repeated.tows = NULL,
  map = NULL,
  lplace = "bottomleft",
  show.pool = F,
  UTMzone
)

Arguments

poly.lst

= list containing PBSmapping::PolySet and PBSmapping::PolyData that describe strata polygons, PolyData may contain allocation to specifiy the number of station to be selected for each strata and repeats to indicate how many stations should be selected from repeated.tows

bounding.poly

= PBSmapping::PolySet describing the area to be surveyed

ntows

= total number of stations to be selected

mindist

= minimum distance (km) or buffer between stations

pool.size

= multiplyer to n.tows. This function first generates a pool of random locations, then randomly selects from the pool stations that fulfill the criteria (allocation by strata, buffer distance, etc.)

repeated.tows

= PBSmapping::EventData of previous stations to be selected from if repeats exist in poly.lst[[2]] (PolyData)

map

= preset location to pass to bioMap

lplace

= placement of legend if !is.null(map)

show.pool

= logical, if TRUE the initial pool of random stations is plotted on the map

UTMzone

= PBSmapping::PolySet attribute, auto-generated if missing

Author(s)

Brad Hubley


BradHubley/SpatialHub documentation built on April 6, 2024, 4:43 p.m.