Generates a tip with an example. The tip and example code are printed, and the example itself is executed.
Examples
tmap_tip()
#> A stand-alone legend (so without map) can be created by setting legend.only to TRUE.
#> New since tmap 1.11.2
#>
#> data(World)
#> tm_shape(World) +
#> tm_polygons("HPI") +
#> tm_layout(legend.only = TRUE)
#>
tmap_tip(from.version = "3.0")
#> Search for multiple locations directly with qtm. It uses tmaptools::geocode_OSM.
#> New since tmap 3.1
#>
#> qtm(c("Paris", "Amsterdam", "Berlin", "London"))
#>