map_expand | R Documentation |
extent
and scale
Take the two parameters defining the spatial grid of a map in GeoPressureR (extent
and scale
)
and constructs various possible spatial variable of interest for the spatial grid (e.g., grid
dimension, latitude and longitude...)
This functions is used in multiple functions of GeoPressureR to allow to only store extent
and
scale
in tag
and graph
while having access to all spatial variables anywhere anytime.
map_expand(extent, scale)
extent |
geographical extent of the map on which the likelihood and graph model will be
computed. Vector of length 4 |
scale |
number of pixels per 1° latitude-longitude. For instance, |
A list containing:
extent
same as input
scale
same as input
lat
vector of latitude
lon
vector of longitude
dim
vector of length 2 of the dimension of the map (number of pixel in lat and lon)
str(map_expand(extent = c(0, 10, 0, 5), scale = 1))
str(map_expand(extent = c(-16, 23, 0, 50), scale = 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.