I came across it when adding the geom_node_point geom for my own graph:
ggg <- ggraph::ggraph(graph, "igraph", algorithm = 'nicely')
ggg <- ggg + ggraph::geom_node_point()
ggg ## all is well
ggg + ggraph::geom_edge_fan()
Error: ggplot2 doesn't know how to deal with data of class function
I got this error, then trying the example in the readme I got the same:
I came across it when adding the
geom_node_point
geom for my own graph: