ggraph plot

ggraph plot#

A graph object can be readily passed to ggraph.

melody_graph <- readRDS(url('https://github.com/softloud/digmus/raw/main/outputs/step-output/melody_graph.rds'))
library(ggraph)

melody_graph |>
        ggraph(layout = 'linear') +
        geom_edge_arc(aes(group = note)) +
        geom_edge_point() 
Loading required package: ggplot2
../../_images/1a2075bfe7a276cc362c4ea7b6ceea358dd5712d8a5969def2d4967c54acb206.png

And with some bits and pieces for background, point size, colour, etc., we have a labelled graph of the melody.