spp.randarea.range {CTFS} | R Documentation

## Number of Species in Randomly Selected Areas of Various Shapes and Sizes

### Description

### Usage

    spp.randarea.range(census1, quadside = 100, shape = 1,
            alivecode=c("A"), mindbh = NULL,
            plotdim = c(1000, 500), replicates = 10,
            unidennames = c("**", "UNID", "uniden", "UNIDEN"))

### Arguments

`census1` | name of census datafame for a single census
`quadside` | vector of dimensions (x) of the randomly selected area in meters
`shape` | vector of integers, factor used to determine dimension y of quadrate. for a square, shape = c(1)
`alivecode` | character, codes of the variable `status` that indicate the tree is alive. The most general valid categories are: "A" and "AB" and "AS". The default for `abundance` is "A"
`mindbh` | Minimum DBH for computing population size in each census
`plotdim` | plot dimensions, x,y lengths in meters
`replicates` | number of randomly selected areas to sample
`unidennames` | vector of codes for unidentified species, codes vary among sites and datasets

### Details

`spp.randarea.range` produces a `list` and a `graph`. The number of species and area of each replicate is graphed. The graph can be saved using the File menu.

`quadside` and `shape` must be vectors of equal length, for which each value in `shape` is paired with a value in `quadside` of the same location in its respective vector. When these vectors are of unequal length, unexpected results including failure to execute, can occur.

Pay attention to the default values of `alivecode` and `mindbh`. Any tree with `alivecode` not equal to “A” has a `dbh` = NA and so will not contribute to the results of this computation. Setting `mindbh` to some value other than NULL will affect the trees that are included in the calculation. Use `mindbh` to select trees larger than 10 mm dbh. Use `alivecode` to select trees to be counted as being alive but have no `dbh` measurement.

### Value

`spp.randarea.range` returns a list with 2 components

`spparea` | a `dataframe` of the mean and standard deviations of the number of individuals and species of the randomly selected areas. `spparea` contains:
`full` | a `dataframe` of the values for each replicate. `full` contains:

area | area, in hectares, of replicate
n.ind | number of individuals in replicate
n.spp | number of species in replicate

### Author(s)

Rick Condit, Suzanne Lao and Pamela Hall

### See Also

`CTFS.diversity`

### Examples

    ## Not run:
    1.  produces a species area curve in about 2 minutes
    quadside=c(1,10,20,30,40,50,60,70,80,90,100)
    spp.area.out <- spp.randarea.range(bci90.full,quadside=quadside,replicates=2)

    ## End(Not run)

[Package CTFS version 1.00 Index]