kwmppp | R Documentation |
Kriged, Weighted, Marked, Planar point pattern are maps of the individiual values of dbmss's.
kwmppp(X, fvind, ReferenceType = "", distance = stats::median(fvind$r),
AllowJitter = TRUE, Nbx = 128, Nby = 128, CheckArguments = TRUE)
## S3 method for class 'kwmppp'
plot(x, ..., Contour = TRUE,
Palette = grDevices::topo.colors(128, alpha=1),
SuppressMargins = TRUE, Contournlevels = 10, Contourcol = "dark red")
X |
A point pattern ( |
fvind |
An object of class |
ReferenceType |
The point type used to calculate the function values. The default value is "", i.e. all point types, but it will generate an error if the actual reference type is different. |
distance |
The distance at which the function value must be considered. The default value is the median distance used to calculate the function values. |
AllowJitter |
If |
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. |
... |
Further parameters passed to |
x |
An object of class "kwmppp" to plot. |
Contour |
If |
Palette |
The color palette of the map. |
SuppressMargins |
If |
Contournlevels |
The number of levels of contours. |
Contourcol |
The color of the contour lines. |
CheckArguments |
If |
kmppp()
produces an object of class "kwmppp" that is also an autoKrige
object that can be used to produce alternative maps.
It can be plotted.
ReferenceType <- "V. Americana"
NeighborType <- "Q. Rosea"
# Calculate individual intertype M(distance) values
fvind <- Mhat(paracou16, , ReferenceType, NeighborType, Individual=TRUE)
# Plot the point pattern with values of M(30 meters)
plot(kwmppp(paracou16, fvind, ReferenceType, distance=30))
# 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 the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.