tmap
tmap copied to clipboard
drop.units = FALSE is not working well for points
@mtennekes see my reprex:
library(tmap)
# works
tm_shape(NLD_muni) +
tm_borders(lwd = 3) +
tm_facets(by = "province", drop.units = FALSE)

# works
tm_shape(NLD_muni) +
tm_dots()

# works (for symbols), but wrongly
tm_shape(NLD_muni) +
tm_symbols() +
tm_facets(by = "province", drop.units = FALSE)

# fails (for dots)
tm_shape(NLD_muni) +
tm_dots() +
tm_facets(by = "province", drop.units = FALSE)
#> Error in `[.data.table`(res, , `:=`(names(defs), Map(replace, .SD, lapply(.SD, : .SDcols missing at the following indices: [3]
Created on 2025-11-28 with reprex v2.1.1