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.
visualizeMorphing(x, y, point.matching = NULL, alphas = c(0.25, 0.5,
0.75), arrows = TRUE, in.one.plot = TRUE, point.colour = NULL)
[Network
]
First network.
[Network
]
Second network.
[matrix
]
Point matching which shall be used for morphing. If NULL
, an optimal
point matching is generated via function getOptimalPointMatching
.
Default is NULL
.
[numeric
]
Vector of coefficients 'alpha' for convex combinations.
[logical(1)
]
Draw arrows originating in the points of x
and ending in the
points matched in y
. Default is TRUE
.
[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
.
[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
.
[ggplot
]