You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a strange error message running a very simple call tm_shape(inter)+ tm_borders():
Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...) : 'x' must be atomic
I suspect it happens whenever a sf object contains a list column? See example below, where the code will break when inter has list-column origins, but run if origins is removed?
library(sf)
#> Linking to GEOS 3.10.2, GDAL 3.4.3, PROJ 8.2.0; sf_use_s2() is TRUE
library(tmap)
#> #> Attaching package: 'tmap'#> The following object is masked from 'package:datasets':#> #> rivers
mtennekes
changed the title
tmap v4 fails if data contains list-column? Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...) : 'x' must be atomic
Use list-columns as alternative to tm_mv for multivariate variables
Jul 16, 2024
I am getting a strange error message running a very simple call
tm_shape(inter)+ tm_borders()
:I suspect it happens whenever a
sf
object contains a list column? See example below, where the code will break wheninter
has list-columnorigins
, but run iforigins
is removed?Created on 2024-07-07 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: