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

Description Usage Arguments Details Value See Also

View source: R/generatelocations.R

Description

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

Usage

1
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/kernelPop2 documentation built on March 30, 2020, 5:37 a.m.