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

visualizeMorphing

Fancy visualization of morphing.


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

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

See Also


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.