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.
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(...)
|
data |
A data.frame with start-end pairs, needs the following columns
|
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 |
named list of options for the termini (start/end dots)
|
... |
all arguments other than |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.