rast.map | R Documentation |
map
This function convert a GeoPressureR map
object into a terra::SpatRaster
with the data of
each stationary periods stored in a different layer.
rast.map(x, names = glue::glue("#{map$stap$stap_id}"), crs = "epsg:4326", ...)
x |
a GeoPressureR |
names |
names of the SpatRaster layers created. See |
crs |
character. Description of the Coordinate Reference System (map projection) in |
... |
additional parameters for |
A terra::SpatRaster object.
Other map:
map_create()
,
print.map()
withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
tag <- tag_create("18LX", quiet = TRUE) |>
tag_label(quiet = TRUE) |>
tag_label(quiet = TRUE) |>
tag_set_map(
extent = c(-16, 23, 0, 50),
scale = 4
) |>
geopressure_map(quiet = TRUE)
})
rast.map(tag$map_pressure)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.