Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression in geom_sf() #6190

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #6189.

Briefly, ggraph::GeomEdgeSf did not have a stroke aesthetic in GeomEdgeSf$default_aes.
That causes some calculations to go awry in GeomSf$draw_panel().
This PR makes a fallback for when stroke is missing.

devtools::load_all("~/packages/ggplot2/")
library(ggraph)

gr <- sfnetworks::as_sfnetwork(sfnetworks::roxel)
ggraph(gr, 'sf') + geom_edge_sf()

Created on 2024-11-19 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Github version broke geom_edge_sf from ggraph
1 participant