| blend {blender} | R Documentation |
Calculate biotic homogenization using Jaccard's index and an approximation
Description
blend finds native landscape similarity and exotic species'
contributions to landscape homogeneity using average pairwise Jaccard
similarity (J.Bar) and an analytical approximation (J.Star) described
in Harris et al. (2011, "Occupancy is nine-tenths of the law," The American
Naturalist) and in blender.basics.
blend can be called on a list of data.frames or on a
character vector pointing to a directory containing data as .csv files.
If blend is called multiple landscapes, it will analyze each one
individually and then combine the results together in a
blended.landscape.bundle, which has its own method for plotting.
Usage
blend(x, warn = FALSE)
Arguments
x |
Either the file path to your landscapes as .csv files (character vector)
or a |
warn |
Logical. Should |
Details
J.Bar, J.Star, and P.Star are defined in Harris et al. (2011) and in the documentation for blender.basics.
blend expects a character vector pointing to .csv files
on your hard drive or a list of data.frames.
The files or
data.frames must be named to include a landscape ID (e.g.
"Iowa" or "Region 7") before the word "native" or "exotic", separated
by a space, as in the included PLANTS data set. blend
needs these names to match for the native and
exotic landscape in order to compare them. Any
landscapes that do not have a counterpart will not be included in the
output. If blend cannot find
any matching native-exotic landscape pairs, it will return an error.
blend expects sites as columns and species as rows. In .csv files,
the first row must be site names and the first column must be species names.
If you input data as data.frames, these attributes should be
included as dimnames instead. The column names, corresponding to
site names, must match between the native and exotic landscapes.
The body of your files or data.frames should be 1s
indicating species presence at a given site, or 0s
for absences.
Value
blend returns a blended.landscape object if called on a
single landscape or a blended.landscape.bundle if called on more
than one. A bundle includes all of the below for each landscape,
plus a summary data.frame.
blended.landscape objects contain:
name |
The name of the landscape analyzed (e.g. "Nebraska" if the contents of
|
J.Bar, J.Star |
|
delta.J.Bar, delta.J.Star |
|
R2 |
The proportion of variance in single-species changes in J.Bar explained by variance in single-species changes in J.Star. |
threshold |
The proportion of sites that must be occupied by an exotic species for
it to have no net effect on |
p.Star |
The proportion of sites that must be occupied by an exotic species for it to have no effect on mean similarity, according to the effective occupancy equation in Harris et al.(which is based on J.Star) |
nadir |
The level of exotic occupancy for which mean similarity is minimized.
Calculated by smoothing the
observed |
results.table |
A summary |
species.delta.table |
A |
scoop |
A set of points used for plotting the "scoop"-shaped model predictions |
native, exotic |
The original imported landscapes |
If called on more than one landscape, blend produces a
blended.landscape.bundle, which includes
one blended.landscape for each landscape included,
as well as a data.frame called summary that includes all
the information from each landscape's resuls.table.
Author(s)
David Jay Harris <DavHarris@UCDavis.edu>
References
Harris, D. J., K. G. Smith, and P. J. Hanly. 2011. "Occupancy is nine-tenths of the law: Occupancy rates determine the homogenizing and differentiating effects of exotic species" The American Naturalist.
See Also
Examples
data(PLANTS)
wy.results = blend(PLANTS[c("WY native table", "WY exotic table")])
# print a summary of the results
wy.results
# plot contributions of individual exotic species to mean similarity
plot(wy.results)
# blend a set of five landscapes simultaneously
five.results = blend(PLANTS[1:(5 * 2)])
## Not run:
# Alternative method of calling blend using a directory
five.results = blend("Users/Dave/Documents/similarity stuff/state matrices")
## End(Not run)
# print a summary of the results across all landscapes
five.results
# plot predictions vs. observations across all landscapes
plot(five.results)
# plot contributions of individual exotic species to mean similarity in
# the first landscape
plot(five.results[[1]])