plotmatch | R Documentation |
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), ... )
xi, eta |
objects of class |
dmat |
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. |
res |
the object returned by the call to |
penalty |
a positive number. The penalty for adding/deleting points. |
p |
a number >0. The order of the TT- or RTT-distance computed. |
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. |
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.
Used for the side effect of plotting.
Dominic Schuhmacher schuhmacher@math.uni-goettingen.de
ppdist
# See examples for ppdist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.