Learn R Programming

heumilkr (version 0.3.0)

autoplot.heumilkr_solution: Create ggplot for a CVRP solution

Description

Represents the sites and runs on a 2D plane so that the distances between sites on the drawn 2D plane correspond to distances provided to the solver clarke_wright().

The individual runs are distinguished by color. The demanding site locations are marked with round circles while the (single) supplying site is depicted as a square. The line types (solid/dashed/...) are associated to different vehicle types.

Usage

# S3 method for heumilkr_solution
autoplot(object, ...)

Value

A ggplot object.

Arguments

object

A "heumilkr_solution" object, typically obtained by clarke_wright().

...

Not used.

Details

Distance information between sites only determine site positions on a 2D plane up to rotations and translations: those are fixed arbitrarily.