Open lazappi opened 6 years ago
Just in case you were wondering I noticed this when trying to find the cause of this issue https://github.com/lazappi/clustree/issues/14 in my clustree package. It's probably not a normal use case so if there isn't an obvious solution might not be worth your time.
This is an unfortunate side-effect of how ggplot2 searches for scales. It searches in the ggplot2 namespace and in the global search path. This means that for edge scales it won't find anything unless ggraph has been loaded.
I'm not too pleased with the situation, but I don't know what to do about it at the moment
I've just noticed that if you try and plot something without loading
ggraph
first the legends are missing:This works fine for a normal
ggplot2
plot:P.S. Thanks a lot for your work on ggraph/tidygraph, they are both awesome!