Skip to content
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

problem with repel = TRUE for geom_node_text #10

Closed
juliasilge opened this issue Nov 2, 2016 · 12 comments
Closed

problem with repel = TRUE for geom_node_text #10

juliasilge opened this issue Nov 2, 2016 · 12 comments

Comments

@juliasilge
Copy link

Thanks so much for your work on this great package.

I am having trouble with using geom_node_text with the current development version of ggplot2; I think this must be a very new problem because I wasn't having this problem until just recently.

If I do something like this:

gr <- make_graph('bull')
V(gr)$class <- sample(letters[1:3], gorder(gr), replace = TRUE)

gr %>%
  ggraph(layout = "fr") + 
  geom_node_text(aes(label = class), repel = TRUE) +
  geom_edge_link() +
  theme_void()

then I get this error:

Error: GeomTextRepel was built with an incompatible version of ggproto.
Please reinstall the package that provides this extension.

There are no errors without repel = TRUE.

@thomasp85
Copy link
Owner

There has just been some updates to the underlying ggproto implementation in ggplot2. Try to install all affected package from fresh (both ggplot2, ggrepel, geforce, and ggraph)

This seemed to do the trick for me at last...

@juliasilge
Copy link
Author

Ah, ggrepel! I had re-installed all but that one.

@thomasp85
Copy link
Owner

You were on the right track then - thanks for the mention in the tidy text book :-)

@juliasilge
Copy link
Author

Yep, that fixed it. Thanks! 🙌

@ghost
Copy link

ghost commented Nov 16, 2016

I am still having issues.

Error: GeomTextRepel was built with an incompatible version of ggproto.
Please reinstall the package that provides this extension.

I tried

devtools::install_github('hadley/ggplot2')
devtools::install_github('thomasp85/ggforce')
devtools::install_github('thomasp85/ggraph')

I cant seem to install/find the package ggproto either.

@thomasp85
Copy link
Owner

reinstall ggrepel

@ghost
Copy link

ghost commented Nov 16, 2016

I did that to via install.packages('ggrepel')

Would that get me the latest version?

@thomasp85
Copy link
Owner

It should but it might not have propagated to CRAN yet? Try to install it from GitHub instead

devtools::install_github('slowkow/ggrepel')

@ghost
Copy link

ghost commented Nov 16, 2016

That worked!
Thanks so much.

@brophyj
Copy link

brophyj commented Mar 8, 2017

I have installed the packages (ggrepel, ggplot2, ggmap, ggforce, ggraph) from GitHub but still get the following error

p <- ggmap(map)
Error in get("f", environment(CoordMap$train)) : object 'f' not found
Any further suggestions?

@thomasp85
Copy link
Owner

This seems like a problem with ggmap and not ggraph — I suggest you raise the issue there

@DrChrisLevy
Copy link

DrChrisLevy commented May 10, 2017

@brophyj

Did you ever find a solution?
I have to user an older version of ggplot --> devtools::install_github("hadley/ggplot2@v2.2.0")
in order for ggmap to work properly.

This is odd. I want to use other packages like plotly, for example, which require newer versions of ggplot. When I update to most recent ggplot I get errors like the other ones described on this page, when I try to use ggmap. I also reinstalled (ggrepel, ggplot2, ggmap, ggforce, ggraph) as you did, from dev tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants