-
Notifications
You must be signed in to change notification settings - Fork 111
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
Some scale_edge_* only work when ggraph is loaded #75
Comments
This is an unfortunate result of how scale extensions are made in ggplot2 and outside the reach of ggraph or any other extension package. The solution is to import and reexport the needed function in your own package... |
Ok, that solution is fine. For future visitors, including this solved it for me (using roxygen):
Thanks Thomas! |
Thanks @Ax3man |
I don't know if it is the way I use packages, but I thought I couldn't modify the color gradient of edges because I didn't see anything in their vignette. Thank for mentioning this here (as well as on #25) ! |
It appears some scales only work when ggraph is actually loaded. When referring to them with
::
the correct guide cannot be found. When the guide is manually specified, the scale does work (with a warning), but no guide is shown.These examples do work after
library(ggraph)
.I believe this will be a problem for code in packages, as
requireNamespace
does not appear to alleviate the problem.The text was updated successfully, but these errors were encountered: