Learn R Programming

mcMST (version 1.0.1)

plot.mcGP: Visualize bi-objective graph.

Description

Only applicable for bi-objective problems of class mcGP. plot.mcGP generates a scatterplot of edge weights. If the nodes do have coordinates, additionally a scatterplot of the nodes in the euclidean plane is generated.

Usage

# S3 method for mcGP
plot(x, y = NULL, show.cluster.centers = TRUE, ...)

Value

[list] A list of ggplot objects with components pl.weights (scatterplot of edge weights) and eventually pl.coords (scatterplot of nodes). The latter is NULL, if graph has no associated coordinates.

Arguments

x

[mcGP]
Multi-objective graph problem.

y

Not used at the moment.

show.cluster.centers

[logical(1)]
Display cluster centers? Default is TRUE. This option is ignored silently if the instance is not clustered.

...

[any]
Not used at the moment.