- shp
One of
shape object, which is an object from a class defined by the sf
or stars
package. Objects from the packages sp
and raster
are also supported, but discouraged.
Not specified, i.e. qtm()
is executed. In this case a plain interactive map is shown.
A OSM search string, e.g. qtm("Amsterdam")
. In this case a plain interactive map is shown positioned according to the results of the search query (from OpenStreetMap nominatim)
- fill
either a color to fill the polygons, or name of the data variable in shp
to draw a choropleth. Only applicable when shp
contains polygons. Set fill = NULL
to draw only polygon borders. See also argument borders
.
- symbols.size
either the size of the symbols or a name of the data variable in shp
that specifies the sizes of the symbols. See also the size
argument of tm_symbols
. Only applicable when shp
contains spatial points, lines, or polygons.
- symbols.col
either the color of the symbols or a name of the data variable in shp
that specifies the colors of the symbols. See also the col
arugment of tm_symbols
. Only applicable when shp
contains spatial points, lines, or polygons.
- symbols.shape
either the shape of the symbols or a name of the data variable in shp
that specifies the shapes of the symbols. See also the shape
arugment of tm_symbols
. Only applicable when shp
contains spatial points, lines, or polygons.
- dots.col
name of the data variable in shp
for the dot map that specifies the colors of the dots. If dots.col
is specified instead symbols.col
, dots instead of bubbles are drawn (unless symbols.shape
is specified).
- text
Name of the data variable that contains the text labels. Only applicable when shp
contains spatial points, lines, or polygons.
- text.size
Font size of the text labels. Either a constant value, or the name of a numeric data variable. Only applicable when shp
contains spatial points, lines, or polygons.
- text.col
name of the data variable in shp
for the that specifies the colors of the text labels. Only applicable when shp
contains spatial points, lines, or polygons.
- lines.lwd
either a line width or a name of the data variable that specifies the line width. Only applicable when shp
contains spatial lines.
- lines.col
either a line color or a name of the data variable that specifies the line colors. Only applicable when shp
contains spatial lines.
- raster
either a color or a name of the data variable that specifices the raster colors. Only applicable when shp
is a spatial raster.
- borders
color of the polygon borders. Use NULL
to omit the borders.
- by
data variable name by which the data is split, or a vector of two variable names to split the data by two variables (where the first is used for the rows and the second for the columns). See also tm_facets
- scale
numeric value that serves as the global scale parameter. All font sizes, symbol sizes, border widths, and line widths are controlled by this value. The parameters symbols.size
, text.size
, and lines.lwd
can be scaled seperately with respectively symbols.scale
, text.scale
, and lines.scale
. See also ...
.
- title
main title. For legend titles, use X.style
, where X is the layer name (see ...
).
- projection
Either a crs
object or a character value (PROJ.4
character string). By default, the projection is used that is defined in the shp
object itself.
- bbox
bounding box. Arugment passed on to tm_shape
- basemaps
name(s) of the provider or an URL of a tiled basemap. It is a shortcut to tm_basemap
. Set to NULL
to disable basemaps. By default, it is set to the tmap option basemaps
.
- overlays
name(s) of the provider or an URL of a tiled overlay map. It is a shortcut to tm_tiles
.
- style
Layout options (see tm_layout
) that define the style. See tmap_style
for details.
- format
Layout options (see tm_layout
) that define the format. See tmap_format
for details.
- ...
arguments passed on to the tm_*
functions. The prefix of these arguments should be with the layer function name without "tm_"
and a period. For instance, the palette for polygon fill color is called fill.palette
. The following prefixes are supported: shape.
, fill.
, borders.
, polygons.
, symbols.
, dots.
, lines.
, raster.
, text.
, layout.
, grid.
, facets.
, and view.
. Arguments that have a unique name, i.e. that does not exist in any other layer function, e.g. convert2density
, can also be called without prefix.