Learn R Programming

netgen (version 1.3)

visualizePointMatching: Visualize point matching.

Description

Draw the points and lines between the matched points for visualization.

Usage

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

Arguments

x

[Network] First network.

y

[Network] Second network.

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

[ggplot]

See Also

getOptimalPointMatching, morphInstances, visualizeMorphing

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab