Skip to content

Commit

Permalink
new templates
Browse files Browse the repository at this point in the history
  • Loading branch information
CeresBarros committed Apr 12, 2022
1 parent 0e1fb9e commit 6b0d643
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
3 changes: 1 addition & 2 deletions R/cohorts.R
Original file line number Diff line number Diff line change
Expand Up @@ -1804,8 +1804,7 @@ pixelFate <- function(pixelFateDT, fate = NA_character_, pixelsRemoved = 0,
#'
#' @param x A \code{cohortData} object
#'
#' @param vegLeadingProportion Numeric between 0-1, determining the relative biomass
#' threshold a species needs to pass to be considered "leading".
#' @template vegLeadingProportion
#'
#' @param mixedType An integer defining whether mixed stands are of any kind of species
#' admixture (1), or only when deciduous mixed with conifer (2).
Expand Down
5 changes: 2 additions & 3 deletions R/maps.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ prepInputsLCC <- function(year = 2010,
#'
#' @param speciesStack A \code{RasterStack} of species abundances.
#' This must be one \code{RasterLayer} per species.
#' @param vegLeadingProportion See \code{vegTypeMapGenerator}.
#' @template vegLeadingProportion
#' @param mixed Deprecated. See \code{mixedType} argument to \code{vegTypeMapGenerator}.
#' @param ... Other arguments passed to \code{vegTypeMapGenerator}, i.e.,
#' \code{vegLeadingProportion}, \code{mixedType}, \code{sppEquiv},
Expand Down Expand Up @@ -157,8 +157,7 @@ makeVegTypeMap <- function(speciesStack, vegLeadingProportion, mixed, ...) {
#'
#' @template pixelGroupMap
#'
#' @param vegLeadingProportion Numeric between 0-1, determining the relative biomass
#' threshold a species needs to pass to be considered "leading".
#' @template vegLeadingProportion
#'
#' @param mixedType An integer defining whether mixed stands are of any kind of species
#' admixture (1), or only when deciduous mixed with conifer (2).
Expand Down
3 changes: 1 addition & 2 deletions R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ utils::globalVariables(c(
#' @param vtm An optional vegetation type map (\code{RasterLayer}).
#' If not supplied, will be produced internally by \code{makeVegTypeMap}.
#'
#' @param vegLeadingProportion The minimum proportion cover required to consider
#' a species to be the "leading" one. Default 0.8.
#' @template vegLeadingProportion
#'
#' @template sppEquiv
#'
Expand Down
4 changes: 1 addition & 3 deletions R/prepInputObjects.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ utils::globalVariables(c(
#'
#' @param speciesLayers stack of species layers rasters
#' @template species
#' @param sppColorVect A named vector of colours to use for plotting.
#' The names must conform with \code{names(speciesLayers)} and should also
#' contain a colour for 'Mixed'.
#' @template sppColorVect
#'
#' @return
#' A \code{list} with the \code{speciesLayers} and \code{sppColorVect}
Expand Down
4 changes: 2 additions & 2 deletions R/sppHarmonize.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#' may arise under different combinations of supplied objects to the three
#' arguments. See manual for details.
#'
#' @param sppEquiv A data.table or NULL representing the sppEquiv table (see manual).
#' If NULL, then it will use the `LandR::sppEquivalencies_CA`
#' @template sppEquiv
#'
#' @param sppNameVector A character vector of species to use. These species must all
#' be from one naming convention, i.e., from one column in the sppEquiv.
#' @param sppEquivCol A character string normally provided from the P(sim)$sppEquivCol
Expand Down
7 changes: 7 additions & 0 deletions man-roxygen/sppColorVect.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#' @param sppColorVect A named vector of colours to use for plotting.
#' The names must conform with species name convention used
#' (see LandR::sppEquivalencies_CA for possible naming
#' conventions) and should also contain a colour for 'Mixed',
#' when a mixed forest type is supported (see vegLeadingProportion
#' parameter in LandR::vegTypeGenerator for details on mixed
#' fores types).
2 changes: 2 additions & 0 deletions man-roxygen/vegLeadingProportion.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#' @param vegLeadingProportion Numeric between 0-1, determining the relative biomass
#' threshold a species needs to pass to be considered "leading".

0 comments on commit 6b0d643

Please sign in to comment.