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 crash when using start_cap = circle(.data$node1.size, unit="native") #246

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

kpj
Copy link
Contributor

@kpj kpj commented May 27, 2020

In the current master branch (1440221), the following code crashes due to a misspelled function name:

data.frame(
  from = c("A"),
  to = c("B")
) %>%
  igraph::graph_from_data_frame() %>%
  ggraph(layout = "circle") +
    geom_edge_link(
      start_cap = circle(.2, unit="native"), # comment out this line to avoid crash
      end_cap = circle(.2, unit="native"),
      arrow = arrow()
    ) +
    geom_node_circle(aes(r = .2)) +
    geom_node_text(aes(label = name)) +
    coord_fixed()

This PR fixes the spelling.

@thomasp85 thomasp85 merged commit 6f2c0ec into thomasp85:master Nov 12, 2020
@thomasp85
Copy link
Owner

Thanks!

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.

None yet

2 participants