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
library(sf)
#> Linking to GEOS 3.13.0, GDAL 3.10.1, PROJ 9.5.1; sf_use_s2() is TRUE# Default behaviour: st_geometry(nc) is plotted in a new windownc= st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet=TRUE)
plot(nc[, 1:7])
plot(st_geometry(nc))
# Now I will add a "faulty" list column to nc and repeat the same code as beforenc[[7]] <- vector("list", 100)
plot(nc[, 1:7])
#> Error in plot.sf(x[, cname], main = cname, pal = pal, nbreaks = nbreaks, : plotting list-columns not supported
plot(st_geometry(nc)) # Plotted in the same plot
library(sf)
#> Linking to GEOS 3.13.0, GDAL 3.10.1, PROJ 9.5.1; sf_use_s2() is TRUE# Default behaviour: st_geometry(nc) is plotted in a new windownc= st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet=TRUE)
# Now I will add a "faulty" list column to nc and repeat the same code as beforenc[[7]] <- vector("list", 100)
plot(nc[, 1:7])
#> Error in plot.sf(x[, cname], main = cname, pal = pal, nbreaks = nbreaks, : plotting list-columns not supported# Revert back the faulty columnnc[[7]] <- rnorm(100)
plot(nc[, 1:7])
plot(st_geometry(nc)) # Plotted in a weird format
Describe the bug
See the reprex(es) below.
To Reproduce
plot(st_geometry(nc))
Created on 2025-04-09 with reprex v2.1.1.9000
Another example of problematic interaction:
Created on 2025-04-09 with reprex v2.1.1.9000
Session info
The text was updated successfully, but these errors were encountered: