Skip to content

drop.units = FALSE is not working well for points #1212

@Nowosad

Description

@Nowosad

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    LayoutIssues related to map layout (including many maps, facets, positions, etc.)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions