kwmppp: Kriged, Weighted, Marked, Planar point pattern

kwmpppR Documentation

Kriged, Weighted, Marked, Planar point pattern

Description

Kriged, Weighted, Marked, Planar point pattern are maps of the individiual values of dbmss's.

Usage

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

Arguments

X

A point pattern (wmppp.object).

fvind

An object of class fv, see fv.object, obtained a distance-based method, such as Mhat with individual values (argument Individual = TRUE).

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 TRUE, duplicated points are jittered to avoid their elimination by the kriging procedure.

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 image.

x

An object of class "kwmppp" to plot.

Contour

If TRUE, contours are added to the map.

Palette

The color palette of the map.

SuppressMargins

If TRUE, the margins around the map are suppressed.

Contournlevels

The number of levels of contours.

Contourcol

The color of the contour lines.

CheckArguments

If TRUE (default), the function arguments are verified. Should be set to FALSE to save time in simulations for example, when the arguments have been checked elsewhere.

Value

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.

Examples

  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)

dbmss documentation built on May 31, 2023, 8:30 p.m.