Description Usage Arguments Value See Also Examples
View source: R/visualizePointMatching.R
Visualize a point matchings. Points and lines between the matched points are drawn in order to visualize the assignment.
1  | visualizePointMatching(x, y, point.matching, highlight.longest = 0L)
 | 
x | 
 [Network | matrix]  | 
y | 
 [Network | matrix]  | 
point.matching | 
 [  | 
highlight.longest | 
 [  | 
[ggplot]
getOptimalPointMatching, morphInstances,
visualizeMorphing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  | # 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.