-
Notifications
You must be signed in to change notification settings - Fork 114
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
geom_edge_link(aes(width = weight)) doesn't change width #144
Comments
Probably related to #142 This is something super weird that has began happening - I begin to think that it might be something in R v3.5 and how scales are found in ggplot2 |
can confirm--code works as intended using fresh installs of all packages required above on another laptop that still has |
This turned out to be a regression in the latest ggforce release... Installing ggforce from GitHub will solve it (I'll work on making a hotfix for the cran version as well, as the next proper ggforce release is some time away) |
I'm still getting exactly the same issue even with the most recent version of
|
@acpguedes Did you solve this issue? I am facing the same. Would it be possible for you to share how to solve it? |
Hi @mnakaya5, I reinstalled ggraph from github library(igraph)
#>
#> Attaching package: 'igraph'
#> The following objects are masked from 'package:stats':
#>
#> decompose, spectrum
#> The following object is masked from 'package:base':
#>
#> union
library(ggraph)
#> Loading required package: ggplot2
g <- erdos.renyi.game(n = 20, p.or.m=0.5)
E(g)$w <- runif(length(E(g)))*20
ggraph(g, layout="stress") +
geom_edge_link(aes(width=w)) +
scale_edge_width(c(0.2, 2)) +
theme_graph() Created on 2021-03-17 by the reprex package (v0.3.0) But I think the
|
Hello, @acpguedes
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Hi,
New user to
ggraph
, which seems great! However, when I callgeom_edge_link(aes(width = weight))
, the edge widths don't change and a scale/legend does not appear on the right. I ran into this issue on my own data but here is a minimal reproducible example of the error adapted from Jesse Sadler's demo.Without error, warning, or message that code produces:
But the look I'm after is:
(
aes()
is finding the variable calledweight
as, for example, changing the key line togeom_edge_link(aes(width = weight123), alpha = 0.8)
producesError in FUN(X[[i]], ...) : object 'weight123' not found
.)Any thoughts as to what might be going on or possible workarounds? Many thanks in advance! Here are some package details...
The text was updated successfully, but these errors were encountered: