assimilation(plants, pixsize = 0.1, resource = 1, influence = gnomon.inf,
infpar = list(a = 1, b = 4, smark = 1), partpar = Inf, efficiency = flat.eff,
effpar = NULL, plot = TRUE, afree = FALSE, centroid = FALSE)assimilation.pix(plants, pixsize = 0.1, resource = 1, influence = gnomon.inf,
infpar = list(a = 1, b = 4, smark = 1), partpar = Inf, efficiency = flat.eff,
effpar = NULL, plot = TRUE, afree = FALSE, centroid = FALSE)
ppp), containing the plants coordinates and marks with the plant size and possibly other attributes.im), or a function, or other object that can be converted to a pixel image, specifying the spatial distribution of resource availability. If an image, it should cover the plants window. It is adjusted (dx, dy, marks, par), where dx is a vector of points-to plant x-distances, dy is a vector of points-to plant y-distances, marinfluence, usually a list or vector. Default: list(a=1, b=4, smark=1). Note that smark=1 indicates that the plant size variable is the first or only item in marks.Inf, which produces a tesselation.(dx, dy, marks, par), where dx is a vector of points-to plant x-distances, dy is a vector of points-to plant y-distances,efficiency, usually a list or vector.TRUE, the denominator of the partition function is graphed as a pixel image, to visualize competition pressure (default).TRUE, the free-growing assimilation is also computed. Default is FALSE.TRUE, the centroid of the plant assimilation distribution is also computed. Default is FALSE.plants with the results appended to the marks(plants) data frame. The additional marks are the assimilation indices in the column aindex, and optionally the free-growing index in afree, and/or the x and y centroid coordinates in cx and cy.assimilation and assimilation.pix are functionally equivalent, but the code in assimilation.pix is somewhat clearer and slower. It may be useful for documentation purposes, and as a basis for user modification.Computation starts with a resource intensity grid at a spatial resolution of pixsize, which is typically assumed to be uniform, Plants exert competitive pressure depending on size and distance, described by the influence function. The resource available at each pixel is allocated to plants according to their influence and to a partition rule parametrized by partpar. Finally, the resource uptake is weighted by the efficiency function, and is spatially integrated to obtain the plant's assimilation index.
influence, efficiency, edgesa <- assimilation(finpines, infpar=list(a=1, b=4,
smark="height"), afree=TRUE)
head(marks(a))
system.time(assimilation.pix(finpines))
system.time(assimilation(finpines))Run the code above in your browser using DataLab