visualizeMorphing: Fancy visualization of morphing.

Description Usage Arguments Value See Also

View source: R/visualizeMorphing.R

Description

Takes two instances of equal size and some alpha values. Computes the point matching and morphings for the alpha values and visualizes the transition of points of the first instance towards their matched counterparts of the second instance with two different methods.

Usage

1
2
visualizeMorphing(x, y, point.matching = NULL, alphas = c(0.25, 0.5,
  0.75), arrows = TRUE, in.one.plot = TRUE, point.colour = NULL)

Arguments

x

[Network]
First network.

y

[Network]
Second network.

point.matching

[matrix]
Point matching which shall be used for morphing. If NULL, an optimal point matching is generated via function getOptimalPointMatching. Default is NULL.

alphas

[numeric]
Vector of coefficients 'alpha' for convex combinations.

arrows

[logical(1)]
Draw arrows originating in the points of x and ending in the points matched in y. Default is TRUE.

in.one.plot

[logical(1)]
Currently the function offers two different types of plot. If in.one.plot is TRUE, which is the default value, the morphing is dipicted in one plot. This is in particular useful for small instances. If set to FALSE, a matrix of plots is generated via facet_grid. One plot for each alpha value in alphas.

point.colour

[character(1)]
Which colour to use for the non-depot points? Default is NULL. In this case the points are coloured by membership. Only considered if in.one.plot is FALSE.

Value

[ggplot]

See Also

morphInstances


netgen documentation built on Jan. 9, 2020, 1:07 a.m.