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
Starting from v2.2.0, the R package ggraph implemented a set of functions to plot sfnetwork objects (see here for more details). One of these functions is geom_edge_sf() and its corresponding help page lists the following example (which is here run using the CRAN version of ggplot2):
pak::pak(c("ggplot2", "ggraph", "sfnetworks"))
#> ℹ Loading metadata database✔ Loading metadata database ... done#> #> ℹ No downloads are needed#> ✔ 3 pkgs + 61 deps: kept 49 [7.9s]
library(ggraph)
#> Warning: package 'ggraph' was built under R version 4.3.3#> Loading required package: ggplot2#> Warning: package 'ggplot2' was built under R version 4.3.3
library(sfnetworks)
#> Warning: package 'sfnetworks' was built under R version 4.3.3gr<-sfnetworks::as_sfnetwork(roxel)
ggraph(gr, 'sf') + geom_edge_sf()
Thanks for the report!
I can confirm this is a bug.
My number 1 subspect for this is that GeomEdgeSf does not have a default for stroke.
However, perhaps ggplot2 should defensively code against such a case.
Starting from v2.2.0, the R package
ggraph
implemented a set of functions to plotsfnetwork
objects (see here for more details). One of these functions isgeom_edge_sf()
and its corresponding help page lists the following example (which is here run using the CRAN version ofggplot2
):Created on 2024-11-18 with reprex v2.0.2
Session info
However, when I run the same code using the Github version of ggplot2 I get an error:
Created on 2024-11-18 with reprex v2.0.2
Session info
I run a
git bisect
and I guess that this is the breaking PR 744e021 but, unfortunately, I don't know how to fix it 😅The text was updated successfully, but these errors were encountered: