R/data.R

##' Patchy associated grid data
##'
##' The package contains three grid data sets. The grid data sets
##' (64 × 64 sampling units) feature one simulation (grid_patchy_associated)
##' and two simulation derivatives (grid_random and grid_n_ISC) have been
##' produced by randomization. A spatially explicit individual-based simulation
##' model (PATPRO) was selected to produce a realistic grid community pattern
##' `grid_patchy` and features interspecific and intraspecific spatial
##' dependence due to simulated abiotic and biotic interactions. The
##' `grid_random` and `grid_patchy_n_isc` data sets were produced by CSR and RS
##' randomizations of the original simulation `grid_patchy`. The
##' `grid_patchy_n_isc` data set only features intraspecific spatial dependence;
##' interspecific relationships were removed by randomizations. The
##' `grid_random` data set only features random distributions; both
##' intra- and interspecific relationships were removed by randomizations.
##'
##' @docType data
##' @format A data frame with 1551 species observations on the following three
##' variables.
##' \describe{
##'    \item{X}{X coordinates}
##'    \item{Y}{Y coordinates}
##'    \item{Species}{Species}}
##' @details The `X` and `Y` coordinates refer to the sampling unit of the
##' species in the sampling universe.
##' @keywords datasets
##' @encoding UTF-8
##' @examples
##' data("grid_patchy_associated", package = "comspat")
##' str(grid_patchy_associated)
##' barplot(
##'   table(grid_patchy_associated$Species),
##'   ylab = "Count (no.)",
##'   space = 0.5
##' )
##' box()
##'
"grid_patchy_associated"





##' Random grid data
##'
##' The package contains three grid data sets. The grid data sets
##' (64 × 64 sampling units) feature one simulation (`grid_patchy_associated`)
##' and two simulation derivatives (`grid_random and grid_n_ISC`) have been
##' produced by randomization. A spatially explicit individual-based simulation
##' model (PATPRO) was selected to produce a realistic grid community pattern
##' `grid_patchy` and features interspecific and intraspecific spatial
##' dependence due to simulated abiotic and biotic interactions. The
##' `grid_random` and `grid_patchy_n_isc` data sets were produced by CSR and
##' RS randomizations of the original simulation `grid_patchy`. The
##' `grid_patchy_n_isc` data set only features intraspecific spatial dependence;
##' interspecific relationships were removed by randomizations. The
##' `grid_random` data set only features random distributions; both intra- and
##' interspecific relationships were removed by randomizations.
##'
##' @docType data
##' @format A data frame with 1551 species observations on the following three
##' variables.
##' \describe{
##'    \item{X}{X coordinates}
##'    \item{Y}{Y coordinates}
##'    \item{Species}{Species}}
##' @details The `X` and `Y` coordinates refer to the sampling unit of the
##' species in the sampling universe.
##' @keywords datasets
##' @encoding UTF-8
##' @examples
##' data("grid_random", package = "comspat")
##' str(grid_random)
##' barplot(
##'   table(grid_random$Species),
##'   ylab = "Count (no.)",
##'   space = 0.5
##' )
##' box()
##'
"grid_random"



##' Patchy no ISC grid data
##'
##' The package contains three grid data sets. The grid data sets
##' (64 × 64 sampling units) feature one simulation (`grid_patchy_associated`)
##' and two simulation derivatives (`grid_random and grid_n_ISC`) have been
##' produced by randomization. A spatially explicit individual-based simulation
##' model (PATPRO) was selected to produce a realistic grid community pattern
##' `grid_patchy` and features interspecific and intraspecific spatial
##' dependence due to simulated abiotic and biotic interactions. The
##' `grid_random` and `grid_patchy_n_isc` data sets were produced by CSR and RS
##' randomizations of the original simulation `grid_patchy`. The
##' `grid_patchy_n_isc` data set only features intraspecific spatial dependence;
##' interspecific relationships were removed by randomizations. The
##' `grid_random` data set only features random distributions; both intra- and
##' interspecific relationships were removed by randomizations.
##'
##' @docType data
##' @format A data frame with 1551 species observations on the following three
##' variables.
##' \describe{
##'    \item{X}{X coordinates}
##'    \item{Y}{Y coordinates}
##'    \item{Species}{Species}}
##' @details The `X` and `Y` coordinates refer to the sampling unit of the
##' species in the sampling universe.
##' @keywords datasets
##' @encoding UTF-8
##' @examples
##' data("grid_patchy_n_isc", paclage = "comspat")
##' str(grid_patchy_n_isc)
##' barplot(
##'   table(grid_patchy_n_isc$Species),
##'   ylab = "Count (no.)",
##'   space = 0.5
##' )
##' box()
##'
"grid_patchy_n_isc"




##' Parameter data for the secondary sampling of a grid
##'
##' A data frame containing information on the size and shape of secondary
##' sampling units for the `comspat()` function.
##'
##' The `comspat()` function requires spatially explicit information. The
##' `params` argument stores and provides spatially explicit information. The
##' parameter data frame for the grid and transect data (i.e., `params.grid` and
##' `params.tran`) are available in the package. The data contains information
##' on the number of scaling steps (`Steps.of.scaling` column) and the size (the
##' number of primary sampling units to create the length and height of the
##' secondary sampling unit, captured in the `Length.of.plots` and
##' `Height.of.plots` columns) of the secondary sampling units. For example, to
##' perform secondary sampling on a grid, the first row of the parameter data
##' set will read 1 for `Steps.of.scaling`, `Length.of.plots` and
##' `Height.of.plots`. If the data was sampled as a `"Transect"` only the
##' `Length.of.plots` coordinate is required.  If the data was sampled as a
##' `"Grid"` both `Length.of.plots` and `Height.of.plots` are required.
##'
##' `Length.of.plots` and `Height.of.plots` are measured in the
##' number of sampling units.
##'
##' @name param_grid
##' @docType data
##' @format A data frame with 16 observations (sampling steps) on the following
##' 3 variables.
##' \describe{
##'     \item{Steps.of.scaling}{Numeric. Sampling step number}
##'     \item{Length.of.plots}{Numeric. Length of the sampling unit.}
##'     \item{Height.of.plots}{Numeric. Height of the sampling unit.}}
##' @keywords datasets
##' @encoding UTF-8
##' @examples
##' data("param_grid", package = "comspat")
##' str(param_grid)
"param_grid"




##' Transect grassland species data
##'
##' The package contains two transects with real data sampled in open
##' sand grassland in Hungary (Bartha et al. 2008). These real transect data
##' sets were from Bartha et al.'s (2008) long-term study on the effect
##' of climate change on the interannual variability of grassland communities.
##' The transect data sets represent: (1) the spatial pattern data of frequent
##' species (species with more than 25 presences along the transect)
##' selected as a threshold from standard textbooks; \code{tran_grass_s}), and
##' (2) the spatial pattern data of plant functional types (PFTs) (in this case
##' data of species which belong to the same functional groups were merged;
##' \code{tran_grass_t}). These data represent the same transect and same
##' community; however, for merging species, all data were used (i.e. the data
##' of rare species were also considered within the particular PFT). For
##' simplicity, we have only selected a 25m example with a very typical pattern;
##' this extent (transect length) is already representative of the community
##' pattern.
##'
##' @references Bartha, S. (2008). Will interannual variability in sand
##'  grassland communities increase with climate change?. Community Ecol.,
##'   9: 13–21.
##' @docType data
##' @format A data frame with 713 species observations on the following two
##' variables.
##' \describe{
##'    \item{X}{X coordinates}
##'    \item{Species}{Species}}
##' @details The \code{X} refers to the sampling unit of the species in the
##' sampling universe.
##' @keywords datasets
##' @encoding UTF-8
##' @examples
##' data(tran_grass_s)
##' str(tran_grass_s)
##' barplot(table(tran_grass_s$Species),ylab = "Count (no.)",
##' space=0.5);box()
##'
"tran_grass_s"





##' Transect grassland trait data
##'
##' The package contains two real transects with data sampled in open
##' sand grassland in Hungary (Bartha et al. 2008). These real transect data
##' sets were from Bartha et al.’s (2008) long-term study on the effect
##' of climate change on the interannual variability of grassland communities.
##' The transect data sets represent: (1) the spatial pattern data of frequent
##' species (species with more than 25 presences along the transect)
##' selected as a threshold from standard textbooks; \code{tran_grass_s}), and
##' (2) the spatial pattern data of plant functional types (PFTs) (in this case
##' data of species which belong to the same functional groups were merged;
##' \code{tran_grass_t}). These data represent the same transect and same
##' community; however, for merging species, all data were used (i.e. the data
##' of rare species were also considered within the particular PFT). For
##' simplicity, we have only selected a 25m example with a very typical pattern;
##' this extent (transect length) is already representative of the community
##' pattern.
##'
##' @references Bartha, S. (2008). Will interannual variability in sand
##'  grassland communities increase with climate change?. Community Ecol.,
##'   9: 13–21.
##' @docType data
##' @format A data frame with 713 species observations on the following two
##' variables.
##' \describe{
##'    \item{X}{X coordinates}
##'    \item{Species}{Species. Note that for the Transect grassland trait data,
##'    'Species' referes to plant functional type.}}
##' @details The \code{X} refers to the sampling unit of the species in the
##' sampling universe.
##' @keywords datasets
##' @encoding UTF-8
##' @examples
##' data(tran_grass_t)
##' str(tran_grass_t)
##' barplot(table(tran_grass_t$Species),ylab = "Count (no.)",
##' space=0.5);box()
##'
"tran_grass_t"





##' Parameter data for the secondary sampling of a transect
##'
##' A data frame containing information on the size and shape of secondary
##' sampling units for the \code{comspat} function.
##'
##' The \code{comspat} function requires spatially explicit information. The
##' \code{params} argument stores and provides spatially explicit information.
##' The parameter data frame for the grid and transect data (i.e.,
##' \code{param_grid} and \code{param_tran}) are available in the package.
##' The data contains information on the number of scaling steps
##' (\code{Steps.of.scaling} column) and the size (the number of primary
##' sampling units to create the length and height of the secondary sampling
##' unit, captured in the \code{Length.of.plots} and \code{Height.of. plots}
##' columns) of the secondary sampling units. For example, to perform secondary
##' sampling on a grid, the first row of the parameter data set will read 1 for
##' \code{Steps.of.scaling}, \code{Length.of.plots} and \code{Height.of.plots}.
##' If the data was sampled as a \code{"Transect"} only the
##' \code{Length.of.plots} coordinate is required.  If the data was sampled as
##' a \code{"Grid"} both \code{Length.of.plots} and \code{Height.of.plots} are
##' required.
##'
##' \code{Length.of.plots} and \code{Height.of.plots} are measured in the
##' number of sampling units.
##'
##' @name param_tran
##' @docType data
##' @format A data frame with 16 observations (sampling steps) on the following
##' 2 variables.
##' \describe{
##'     \item{Steps.of.scaling}{Numeric. Sampling step number}
##'     \item{Length.of.plots}{Numeric. Length of the sampling unit.}}
##' @keywords datasets
##' @examples
##' data(param_tran)
##' str(param_tran)
"param_tran"
jamestsakalos/comspat documentation built on July 1, 2023, 3:52 p.m.