plot_path | R Documentation |
path
This function plots a path
data.frame. This function is used in plot.map()
.
plot_path(
path,
plot_leaflet = TRUE,
provider = "Esri.WorldTopoMap",
provider_options = leaflet::providerTileOptions(),
pad = 3,
...
)
path |
a GeoPressureR |
plot_leaflet |
logical defining if the plot is an interactive |
provider |
the name of the provider (see https://leaflet-extras.github.io/leaflet-providers/preview/ and https://github.com/leaflet-extras/leaflet-providers) |
provider_options |
tile options. See leaflet::addProviderTiles() and leaflet::providerTileOptions() |
pad |
padding of the map in degree lat-lon (only for |
... |
additional parameters for |
modified map object
plot.map()
Other path:
ind2path()
,
path2edge()
,
path2elevation()
withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
tag <- tag_create("18LX", quiet = TRUE) |>
tag_label(quiet = TRUE) |>
tag_set_map(c(-16, 23, 0, 50), scale = 1)
})
path <- ind2path(c(1652, 1603, 1755, 1708, 1607), tag)
plot_path(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.