Nothing
tmap v4 is a major release and has been rewritten from scratch. It contains tons of new features. Although we did our best to make changes backwards compatible, some things may not work as expected.
tm_symbols()
have been reorganized. Visual variables are used with explicit scales, legends, and charts.fill
is the visual variable for fill color and col
for border color.rivers
has been renamed to World_rivers
due to the name clash with rivers
from datasets
. NLD_prov
, NLD_muni
, and (new) NLD_dist
(district level) have been included with new demographic variables.land
has included color tablestmap_save()
World
s has been fixed (it is now 's2' proof, see GitHub issue #564)popup.format
to control whether html code is escaped in view popupstmap_grob()
added, which exports tmap plots to grob
objects (grid package)SpatRaster
objects (terra package) supportedtmap_animation()
improved: now using av and gifski under the hood; added progress bar; lists of tmap objects supported; improved default settingstmapOutput()
; it now works with reactive shiny objectstmap_save()
)tmap_design_mode()
; tmap.design.mode
is now a global option (and not a tmap option anymore)leafet
show.warnings
to tmap_options()
width
argument to tm_credits()
tm_text()
improved: added "id" argument, and tm_remove_layer()
can be applied to ittmap_options(projection = 0, basemaps = NULL)
tm_mouse_coordinates()
to show mouse coordinates in view modetmap_design_mode()
to toggle the design mode.selfcontained
to tmap_save()
tm_add_legend()
: added type = "title"
for title only legend elementsttmp()
which shows the last map in the other mode. as.count
argument added to layer functions; numeric variables can be treated as count variables (integers)classInt::classIntervals()
"epsg/proj4strings"
in examplessf
objectstmapOutput()
, renderTmap()
, tmapProxy()
, and, tm_remove_layer()
tmap_save()
(regarding default values)tm_rgb()
(added r g b and max.value arguments)tm_graticules()
group = NULL
mapview
by leafsync
tm_rgb()
bbox
argument to qtm()
tmap_arrange()
can take a list of tmap objectstm_sf()
which draws sf objects*_tmap()
functions (e.g. save_tmap()
) to tmap_*()
for consistencytm_basemap()
and tm_tiles()
: now, multiple (overlay) tiled maps can be showntmap_options()
, tmap_style()
, tmap_format()
, tm_style()
and tm_format()
filter
argument to tm_shape()
and added colorNULL
to layer functionstm_minimap()
remove.NA.facets
to tm_facets()
tmap_animation()
enhanced with loop optionstmap_tips()
tm_fill()
text.align
and text.to.columns
to legend.format
legend.(aes).reverse
added to the layer functionsfree.coords
and drop.units
in tm_facets()
dismo::gmap()
raster shapestm_scale_bar()
, tm_text()
, and tm_grid()
now supported in view mode (requires leaflet 1.1.0)along
argument to tm_facets()
, which enables faceting along multiple pages (or animation frames)main.title
argument to tm_layouttmap_options()
, including the new option tmap.unit
("metric" or "imperial"")tm_rgb()
(shortcut for rgb rasters)qtm()
called without argumentstmap_arrange()
for arranging custom small multiplessimplify
argument to tm_shape()
tm_shape()
, set_projection), and as.CRS is added to get_projection and get_proj4.tm_symbols()
added, to create proportional symbol maps: besides bubbles, it also supports other symbol shapes, png icons, and small ggplot2 plotstmaptools::rev_geocode_OSM()
addedtm_logo()
addedpopup.vars
to base layer functions bbox
in tm_shape()
) working in view modetmaptools::geocode_OSM()
improved: a SpatialPointsDataFrame
can now be returnedlast_tmap()
added, which retrieves the last produced maptm_raster()
legend.height
and legend.width
)interval.closure
added to layer functions to determine where intervals are closedjust
argument as anchor for text labels, legend and attributes positiontm_xlab()
and tm_ylab()
raster::crop()
geocode_OSM()
, a function to find coordinates (now tmaptools::geocode_OSM()
)double_line
and offset_line
save_tmap
tm_layouts()
's design.mode outputlwd
parameter added to tm_scale_bar()
and tm_compass()
bb
bug"+init=epsg:28992"
, since the latter now has a "+towgs"
itemprint.tmap()
returned objectread_osm()
, a function to read Open Street Map data (now tmaptools::read_osm()
)bb
, a handy bounding box functiontm_compass()
)size
and col
World
style="cat"
, "cont", and "order")save_tmap()
free.coords
and drop.shapes
of tm_facets()
workingviewport
bug?tmap
for a structured overview of all tmap functionstm_credits()
and tm_scale_bar()
is.master
argument to tm_shape()
, that determines which shape is the masterunit
and unit.size
arguments to tm_shape()
that correlates the coordinates with the desired unitstm_polygons()
, which is a combination of tm_fill()
and tm_borders()
tm_raster()
tm_layout()
)crop_shape()
, since raster::crop()
does the same job, but, but fasterscale
parameter (global scale set in tm_layout()
)tm_facets()
) with respect to scaling and free coordinate scales alpha
argument to tm_layers()
for transparencysplit()
to split a shape object and sbind()
to combine shape objects.legend.position = NULL
inner.margins
and outer.margins
. Both can take one value (e.g. outer.margins=0
rather than outer.margins=c(0,0,0,0))
qtm()
: tm_facets()
parameters working, and also fixed scale parameter bugapprox_areas
, calc_densities
outer.margins=0
. animation_tmap()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.