Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

visualizePointMatching

Visualize point matching.


Description

Visualize a point matchings. Points and lines between the matched points are drawn in order to visualize the assignment.

Usage

visualizePointMatching(x, y, point.matching, highlight.longest = 0L)

Arguments

x

[Network | matrix]
Network or (n x 2) matrix.

y

[Network | matrix]
Network or (n x 2) matrix.

point.matching

[matrix]
Point matching received via getOptimalPointMatching for example.

highlight.longest

[integer(1)]
Number of longest distances which should be particularly highlighted. Default is 0.

Value

See Also

Examples

# 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)

netgen

Network Generator for Combinatorial Graph Problems

v1.3.2
BSD_3_clause + file LICENSE
Authors
Jakob Bossek [aut, cre]
Initial release
2020-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.