tmap icon indicating copy to clipboard operation
tmap copied to clipboard

drop.units = FALSE is not working well for points

Open Nowosad opened this issue 1 month ago • 0 comments

@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

Nowosad avatar Nov 28 '25 18:11 Nowosad