basemap_data | R Documentation |
Internal function to create a basemapData
object for basemap
basemap_data(
limits = NULL,
data = NULL,
shapefiles = NULL,
crs = NULL,
bathymetry = FALSE,
bathy.type = NULL,
downsample = 0,
glaciers = FALSE,
lon.interval = NULL,
lat.interval = NULL,
expand.factor = 1.1,
rotate = FALSE,
verbose = FALSE
)
limits |
Map limits. One of the following:
Can be omitted if |
data |
A data frame, sp, or sf shape containing longitude and latitude coordinates. If a data frame, the coordinates have to be given in decimal degrees. The limits are extracted from these coordinates and produce a rectangular map. Suited for situations where a certain dataset is plotted on a map. The function attempts to guess the correct columns and it is advised to use intuitive column names for longitude (such as "lon", "long", or "longitude") and latitude ("lat", "latitude") columns. Can be omitted if |
shapefiles |
Either a list containing shapefile information or a character argument referring to a name of pre-made shapefiles in |
crs |
Coordinate reference system (CRS) for the map. If |
bathymetry |
Logical indicating whether bathymetry should be added to the map. Functions together with |
downsample |
Integer defining the downsampling rate for raster bathymetries. A value of 0 (default) does not downsample, 1 skips every second row, 2 every second and third. See |
glaciers |
Logical indicating whether glaciers and ice sheets should be added to the map. |
lon.interval , lat.interval |
Numeric value specifying the interval of longitude and latitude grids. |
expand.factor |
Expansion factor for map limits. Can be used to zoom in (decrease the value under 1) and out (increase the value over 1) automatically ( |
rotate |
Logical indicating whether the projected maps should be rotated to point towards the pole relative to the mid-longitude limit. |
verbose |
Logical indicating whether information about the projection and guessed column names should be returned as messages. Set to |
This is an internal function, which is automatically run by the basemap
function. Common users do not need to worry about these details.
A list of class basemapData
containing information required for plotting a basemap
.
Mikko Vihtakari
basemap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.