Smooth.wmppp {dbmss} | R Documentation |

## Spatial smoothing of individual dbmss's

### Description

Performs spatial smoothing of the individual values of distance-based measures computed in the neighborhood of each point (Marcon and Puech, 2023).

### Usage

```
## 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)
```

### Arguments

`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 |

### Value

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.

### References

Marcon, E. and Puech, F. (2023). Mapping distributions in non-homogeneous space with distance-based methods. *Journal of Spatial Econometrics* 4(1), 13.

### Examples

```
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)
```

*dbmss*version 2.9-0 Index]