Closed petehobo closed 7 years ago
I've gotten this same error recently: it's a problem that occurs when repel = TRUE
in ggraph. The short term solution is to replace repel = TRUE
with vjust = 1, hjust = 1
- it won't look quite as good but it will certainly be readable.
If you'd like to open a GH issue on ggraph, here's a handy reproducible example:
library(ggraph)
library(igraph)
library(dplyr)
data_frame(node1 = 1:4, node2 = 2:5) %>%
graph_from_data_frame() %>%
ggraph(layout = "fr") +
geom_edge_link() +
geom_node_point() +
geom_node_text(aes(label = name), repel = TRUE)
Incidentally, I've had a hard time figuring out which package causes it- ggplot2, ggraph, ggrepel, or something else- but ggraph is the safest bet for opening an issue.
Excellent - thanks for the quick response. That workaround does the trick.
I've raised https://github.com/thomasp85/ggraph/issues/69, so am happy to close this
Apparently this is fixed now (in https://github.com/slowkow/ggrepel/issues/72)
Firstly, thanks for a great resource. I'm new to text mining, and am finding the text clear and enjoyable to work through.
When I try to run this code from chapter 4:
I get the following error
It seems to come from this line:
but more than that I can't tell (I'm fairly new to R).
For what it's worth, I get the same error when building the HTML version of the book locally.
If it's out of your hands, please let me know and I'll take it up with whichever package maintainer you feel is responsible.
In case it helps, here are the details of what I have installed: