After calling ppdist
with argument ret_matching = TRUE
in a situation where it makes sense to assign to the points of the patterns \(\xi\)
and \(\eta\) coordinates in \(R^2\), this function may be used to display
the result graphically.
plotmatch(
xi,
eta,
dmat,
res,
penalty,
p = 1,
cols = c(2, 4),
pchs = c(1, 1),
cexs = c(1, 1),
...
)
Used for the side effect of plotting.
objects of class ppp
.
a matrix specifying in its \((i,j)\)-th entry the distance from the i-th point of \(\xi\) to the j-th point of \(\eta\).
the object returned by the call to ppdist
with ret_matching = TRUE
.
a positive number. The penalty for adding/deleting points.
a number \(>0\). The order of the TT- or RTT-distance computed.
vectors of length 2 specifying the corresponding graphic parameters col, pch and cex for plotting the two point patterns.
further graphic parameters passed to the code that draws the line segments between the points.
Dominic Schuhmacher schuhmacher@math.uni-goettingen.de
The default use-case is to plot a matching obtained with ppdist
.
In that case dmat
, penalty
and p
should be the same
as in the call to ppdist
. These objects are used to display additional
information about the matching.
ppdist