r-tmap / tmap

R package for thematic maps
https://r-tmap.github.io/tmap
GNU General Public License v3.0
862 stars 121 forks source link

isssue in vignette #927

Closed olivroy closed 1 month ago

olivroy commented 1 month ago

This commit caused the following example to error 133f559c51c393186ef4a2afadc4c186793f8532.

What the correct code should be?

https://r-tmap.github.io/tmap/dev/articles/tmap_sneak_peek.html#aesthetics

# tmap v4 (before the commit)
tm_shape(World) +
    tm_polygons(fill = "HPI", 
                fill.scale = tm_scale_intervals(values = "purple_green"), 
                fill.legend = tm_legend(title = "Happy Planet Index"))

image

olivroy commented 1 month ago

This also affects SDSR https://github.com/edzer/sdsr/actions/runs/10608550290

olivroy commented 1 month ago

Fixed by 9bcd02d18b9cdbf27b17fe89c5e58991255afae0