Smooth.wmppp | R Documentation |
Performs spatial smoothing of the individual values of distance-based measures computed in the neighborhood of each point (Marcon and Puech, 2023).
## S3 method for class 'wmppp'
Smooth(X, fvind, distance = NULL, Quantiles = FALSE,
sigma = bw.scott(X, isotropic = TRUE), Weighted = TRUE, Adjust = 1,
Nbx = 128, Nby = 128, ..., CheckArguments = TRUE)
X |
A point pattern ( |
fvind |
An object of class |
distance |
The distance at which the function value must be considered. The default value is the median distance used to calculate the function values. |
Quantiles |
If |
Weighted |
If |
sigma |
The bandwidth used for smoothing.
A Gaussian kernel is used (see |
Adjust |
Force the selected bandwidth ( |
Nbx , Nby |
The number of columns and rows (pixels) of the resulting map, 128 by default. Increase it for quality, paid by increasing computing time. |
... |
Extra arguments, passed to |
CheckArguments |
If |
An image that can be plotted.
If quantiles have been computed in fvind
, attributes "High" and "Low" contain logical vectors to indentify significantly high and low quantiles.
Marcon, E. and Puech, F. (2023). Mapping distributions in non-homogeneous space with distance-based methods. Journal of Spatial Econometrics 4(1), 13.
ReferenceType <- "V. Americana"
NeighborType <- "Q. Rosea"
# Calculate individual intertype M(distance) values
fvind <- Mhat(paracou16, r=c(0, 30), ReferenceType, NeighborType, Individual=TRUE)
# Plot the point pattern with values of M(30 meters)
p16_map <- Smooth(paracou16, fvind, distance=30)
plot(p16_map, main = "")
# Add the reference points to the plot
is.ReferenceType <- paracou16$marks$PointType == ReferenceType
points(x=paracou16$x[is.ReferenceType], y=paracou16$y[is.ReferenceType], pch=20)
# Add contour lines
contour(p16_map, nlevels = 5, add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.