landscape.generate.locations: generates randomly located and sized, non-overlapping habitat...

View source: R/generatelocations.R

landscape.generate.locationsR Documentation

generates randomly located and sized, non-overlapping habitat patches on the landscape

Description

makes it easier to define landscapes, if you are just interested in a random landscape with certain qualities

Usage

landscape.generate.locations(npop = 10, xrange = c(0, 15000), yrange = xrange, sizexkernel = c(300, 80), sizeykernel = sizexkernel, boundaries = NULL)

Arguments

npop

number of habitats to define

xrange

the low and high bounds for a landscape's x coordinates (stay positive)

yrange

the low and high bounds for a landscape's y coordinates (stay positive)

sizexkernel

mean and sd for a normal distribution defining the x-dimension of habitats

sizeykernel

mean and sd for a normal distribution defining the y-dimension of habitats

boundaries

another way to define boundaries for landscape.

Details

Chooses x and y coordinates for rectangles from a uniform distribution with limits given by the *range parameters. The x and y sizes of the habitats are governed by pulls from normal distributions

Value

a matrix with columns 1=leftx x coordinates, 2=bottom y coordinates, 3=right x coordinates, 4=top y coordinates. The row number is equal to the number of habitats (npop)

See Also

landscape.new.epoch()


stranda/quantsel documentation built on July 10, 2022, 2:28 p.m.