Skip to content

Commit

Permalink
Merge pull request #30 from monarch-initiative/fix_self_loop_plot
Browse files Browse the repository at this point in the history
fix self loops missing in plot
  • Loading branch information
oneilsh authored Jul 29, 2024
2 parents 3a3d5cf + 1062741 commit e125b6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Package
Title: Monarch Knowledge Graph Queries
Description: R package for easy access, manipulation, and analysis of
Monarch KG data Resources.
Version: 1.0.0
Version: 1.0.1
URL: https://github.com/monarch-initiative/monarchr
BugReports: https://github.com/monarch-initiative/monarchr/issues
Authors@R:
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

1.0.1: Fix missing self loops in plot

# monarchr 1.0.0

1.0.0 is a major update to `monarchr` functionality and APIs.
Expand Down
3 changes: 3 additions & 0 deletions R/plot.tbl_kgx.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ plot.tbl_kgx <- function(g, layout = "auto", node_color = pcategory, edge_color
geom_edge_fan(aes(color = {{edge_color}}),
arrow = arrow(length = unit(2, 'mm'), type = "closed"),
end_cap = circle(2.5, 'mm')) +
geom_edge_loop(aes(color = {{edge_color}}),
arrow = arrow(length = unit(2, 'mm'), type = "closed"),
end_cap = circle(2.5, 'mm')) +
geom_node_point(aes(color = {{node_color}}),
size = 3) +
geom_node_label(aes(label = str_wrap(name, 20)),
Expand Down

0 comments on commit e125b6a

Please sign in to comment.