This grid plot shows flows between locations by positioning origins and destination in y and x axes, respectively. This function is called when plotting epiflows with type = "grid".

grid_epiflows(x, color_by = c("from", "to", "none"), ...)

Arguments

x

An epiflows object.

color_by

A character string indicating if flows should be colored by origin (from) or destination (to).

...

arguments passed on to ggplot2::geom_point()