plotmatch {ttbary} | R Documentation |
Plot Optimal Matching between Two Point Patterns
Description
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.
Usage
plotmatch(
xi,
eta,
dmat,
res,
penalty,
p = 1,
cols = c(2, 4),
pchs = c(1, 1),
cexs = c(1, 1),
...
)
Arguments
xi , eta |
objects of class |
dmat |
a matrix specifying in its |
res |
the object returned by the call to |
penalty |
a positive number. The penalty for adding/deleting points. |
p |
a number |
cols , pchs , cexs |
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. |
Details
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.
Value
Used for the side effect of plotting.
Author(s)
Dominic Schuhmacher schuhmacher@math.uni-goettingen.de
See Also
Examples
# See examples for ppdist