- ...
options from tm_layout
or tm_view
. Note that the difference with using tm_layout
or tm_view
directly, is that options set with tmap_options
remain for the entire session (unless changed with tmap_options
or tmap_style
). It can also be a single unnamed argument which is a named list of options (similar behaviour as options
).
- unit
this is the default value for the unit
argument of tm_shape
. It specifies the unit of measurement, which is used in the scale bar and the calculation of density values. By default (when loading the package), it is "metric"
. Other valid values are "imperial"
, "km"
, "m"
, "mi"
, and "ft"
.
- limits
this option determines how many facets (small multiples) are allowed for per mode. It should be a vector of two numeric values named facets.view
and facets.plot
. By default (i.e. when loading the package), it is set to c(facets.view = 4, facets.plot = 64)
- max.categories
in case col
is the name of a categorical variable in the layer functions (e.g. tm_polygons
), this value determines how many categories (levels) it can have maximally. If the number of levels is higher than max.categories
, then levels are combined.
- max.raster
the maximum size of rasters, in terms of number of raster cells. It should be a vector of two numeric values named plot
and view
, which determines the size in plotting and viewing mode. The default values are c(plot = 1e7, view = 1e6)
. Rasters that are larger will be shown at a decreased resolution.
- basemaps
default basemaps. Basemaps are normally configured with tm_basemap
. When this is not done, the basemaps specified by this option are shown (in view mode). Vector of one or more names of baselayer maps, or NULL
if basemaps should be omitted. For options see the list leaflet::providers
, which can be previewed at https://leaflet-extras.github.io/leaflet-providers/preview/. Also supports URL's for tile servers, such as "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
. If a named vector is provided, the names are used in the layer control legend (similar to the group
argument of tm_basemap
. See also overlays
, which is the default option for overlay tiles.
- basemaps.alpha
default transparency (opacity) value for the basemaps. Can be a vector of values, one for each basemap.
- overlays
default overlay tilemaps. Overlays tilemaps are shown as front layer (in contrast to basemaps, which are background layers), so they are only useful when they are semi-transparent. Like basemaps, a vector of tilemaps is expected, or NULL
is overlays should be omitted.
- overlays.alpha
default transparency (opacity) value for the overlay maps. Can be a vector of values, one for each overlay map.
- qtm.scalebar
should a scale bar be added to interactive maps created with qtm
. In other words, should tm_scale_bar()
be added automatically? The value NA
means that the scale bar is only added when qtm
is called without arguments or with a search term. The default value is TRUE
.
- qtm.minimap
should a minimap be added to interactive maps created with qtm
. In other words, should tm_minimap()
be added automatically? The default value is FALSE
.
- qtm.mouse.coordinates
should mouse coordinates (and zoom level) be shown in view mode with qtm
? In other words, should tm_mouse_coordinates()
be added automatically? TRUE
by default.
- show.messages
should messages be shown?
- show.warnings
should warnings be shown?
- output.format
The format of the static maps saved with tmap_save
without specification of the filename. The default is "png"
.
- output.size
The size of the static maps saved with tmap_save
without specification of width and height. The unit is squared inch and the default is 49. This means that square maps (so with aspect ratio 1) will be saved as 7 by 7 inch images and a map with aspect ratio 2 (e.g. most world maps) will be saved as approximately 10 by 5 inch.
- output.dpi
The default number of dots per inch for tmap_save
.
- output.dpi.animation
The default number of dots per inch for tmap_animation
.
- design.mode
Not used anymore; the design mode can now be set with tmap_design_mode
- check.and.fix
Logical that determines whether shapes (sf
objects) are checked for validity with st_is_valid
and fixed with st_make_valid
if needed.
- style
style name