View source: R/visualizePointMatching.R
visualizePointMatching | R Documentation |
Visualize a point matchings. Points and lines between the matched points are drawn in order to visualize the assignment.
visualizePointMatching(x, y, point.matching, highlight.longest = 0L)
x |
[Network | matrix] |
y |
[Network | matrix] |
point.matching |
[ |
highlight.longest |
[ |
[ggplot
]
getOptimalPointMatching
, morphInstances
,
visualizeMorphing
# point matching on networks
x = generateRandomNetwork(n.points = 20L, upper = 100)
y = generateClusteredNetwork(n.points = 20L, n.cluster = 2L, upper = 100)
## Not run:
pm = getOptimalPointMatching(x$coordinates, y$coordinates)
print(visualizePointMatching(x, y, pm, highlight.longest = 2L))
## End(Not run)
# point matching on point clouds
x = matrix(runif(20L), 2L)
y = matrix(runif(20L), 2L)
## Not run:
pm = getOptimalPointMatching(x, y)
print(visualizePointMatching(x, y, pm))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.