map-geo-lines-plot: geo_lines_plot

Description Usage Arguments

Description

geo_lines_plot creates a map with lines (great circles) between geo graphic locations using the specified library, which can be used in the library's %>% workflow. Data must be provided in long format.

leaflet_geo_lines_plot should not be used directly, it generates a map with great circles between points using Leaflet.

Usage

1
2
3
4
5
6
7
geo_lines_plot(data = NA, library = "leaflet", line.color = "#2c7bb6",
  line.popup = NULL, line.mouseover = NULL, start.color = "#fdae61",
  end.color = "#d7191c", both.color = "#7570b3",
  line.options = list(weight = 4), termini.legend = TRUE,
  termini.options = list(termini.radius = 4))

leaflet_geo_lines_plot(...)

Arguments

data

A data.frame with start-end pairs, needs the following columns

  • "start.longitude" : start longitude

  • "start.latitude" : start latitude

  • "end.longitude" : end longitude

  • "end.latitude" : end latitude

library

must be one of the supported libraries, currently; "leaflet". Defaults to "leaflet".

line.color

color for the geolines (great circles), defaults to #2c7bb6

line.popup

expression used to populate popups displayed when a geoline is clicked, can use models/formula. For instance, ~paste(start.longitude, end.longitude)

start.color

color of the dots representing start locations, defaults to #fdae61

end.color

color of the dots representing end locations, defaults to #d7191c

line.options

named list of options for geolines

termini.legend

include a legend for termini, using termini.options colors. Default to TRUE.

termini.options

named list of options for the termini (start/end dots)

  • start.fill : Fill start termini? TRUE or FALSE, default FALSE.

  • end.fill : Fill end termini? TRUE or FALSE, default TRUE.

  • termini.radius : size of start termini.

  • termini.radius : size of start termini.

...

all arguments other than data and library provided to geo_lines_plot.


martinjhnhadley/oidnChaRts documentation built on May 21, 2019, 12:38 p.m.