-
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
Problem on edge colour geom_edge_link colour #142
Comments
What is the issue exactly? Are you getting a plot but without colour? |
got it working, nevertheless i think the issue its " still open ".
the difference between plot & plot 2 its the colour vs edge_colour the difference between vs plot 3 , its that its spacified both edge_colour + colour may be some variable override its in the code hope it helps :D |
That seems super strange. I’ve never seen this behaviour before. I’ll look into it but have some prescient priorities elsewhere at the moment |
Thanks for the quick response, Feel free to lower the priority or if needed close. ( no suggest to close ase its weird behaviour ) keep the awsome work :D |
I'm actually having the exact same issue or similar issue. Reverting to version 1.0.0 doesn't fix the issue either, so I'm quite confused. Following the first example here (https://www.data-imaginist.com/2017/ggraph-introduction-edges/) doesn't work for coloring edges. Here are three attempts: No colorggraph(hairball, layout = 'kk') + ggraph(hairball, layout = 'kk') + Color worksggraph(hairball, layout = 'kk') + but get this warning: "Warning: Ignoring unknown aesthetics: edge_color In my personal example, I get this error: "Error in guide_train.edge_colourbar(guide, scale, output) : Not sure if that's related or not to the other issues... |
I’m beginning to think this is due to version incompatibilities between ggraph and ggplot2 - does it persist if you downgrade to CRAN versions for both packages? |
That makes sense, but I'm having trouble downgrading both. When I downgrade ggplot2 to 2.0/2.1 I get this error trying to install either ggraph version: "Error : object ‘FacetWrap’ is not exported by 'namespace:ggplot2' " Any ideas? |
You need 2.2.1, which is the lavest on CRAN |
Ah I was confused at what you meant. I am using both of the most recent CRAN versions for ggplot2 and ggraph, and that's where the original issue is happening. I thought you were asking to try downgrading both. |
One of your warnings indicated that you were using the development version of ggplot2. Can you reproduce the issue with fresh installs from CRAN |
I just tried this on a code ocean capsule, and am still not getting any color to the edges. I believe those are fresh CRAN installs, but here are the versions: |
I can confirm I have same problem. Can only render coloured edges using geom_edge_link(aes(edge_colour = factor(year),colour=factor(year))). R version 3.5.0 |
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 am experiencing this exact same issue. In my graph I have specified a color under I have tried both the combination and stand-alone version and it is not working. I have tried it also for the nodes and it is not working either.
|
Hi , first of all; Really thanks for the awsome package.
I've seen the link: https://www.data-imaginist.com/2017/announcing-ggraph/
and I really want to give a try to the faceted graph thing,
Unluckily, at the first example got stuck as I wont get the colors. ( code below )
I ve tryed in linux and windows ( info at the end )
the example
library(ggraph)
library(igraph)
graph <- graph_from_data_frame(highschool)
p <- ggraph(graph, layout = 'kk') +
geom_edge_link(aes(colour = factor(year))) +
geom_node_point() +
ggtitle('An example')
p
Session info
LINUX
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.4 LTS
Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.0
LAPACK: /usr/lib/lapack/liblapack.so.3.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=es_AR.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=es_AR.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=es_AR.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] igraph_1.1.2 ggraph_1.0.1 ggplot2_2.2.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.16 bindr_0.1.1 magrittr_1.5 units_0.5-1 MASS_7.3-50
[6] munsell_0.4.3 viridisLite_0.3.0 colorspace_1.3-2 R6_2.2.2 rlang_0.2.0
[11] udunits2_0.13 plyr_1.8.4 dplyr_0.7.4 tools_3.4.4 grid_3.4.4
[16] gtable_0.2.0 ggforce_0.1.2 lazyeval_0.2.0 digest_0.6.12 assertthat_0.2.0
[21] tibble_1.4.2 bindrcpp_0.2.2 gridExtra_2.3 tweenr_0.1.5 viridis_0.5.1
[26] ggrepel_0.8.0 glue_1.2.0 labeling_0.3 compiler_3.4.4 pillar_1.2.1
[31] scales_0.4.1 pkgconfig_2.0.1
WINDOWS
R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] igraph_1.2.1 ggraph_1.0.1 ggplot2_2.2.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.17 bindr_0.1.1 magrittr_1.5 units_0.5-1 MASS_7.3-50 tidyselect_0.2.4
[7] munsell_0.4.3 viridisLite_0.3.0 colorspace_1.3-2 R6_2.2.2 rlang_0.2.1 udunits2_0.13
[13] plyr_1.8.4 dplyr_0.7.5 tools_3.4.4 grid_3.4.4 gtable_0.2.0 ggforce_0.1.2
[19] yaml_2.1.19 lazyeval_0.2.1 digest_0.6.15 assertthat_0.2.0 tibble_1.4.2 bindrcpp_0.2.2
[25] gridExtra_2.3 purrr_0.2.5 tweenr_0.1.5 viridis_0.5.1 ggrepel_0.8.0 glue_1.2.0
[31] labeling_0.3 compiler_3.4.4 pillar_1.2.3 scales_0.5.0 pkgconfig_2.0.1
The text was updated successfully, but these errors were encountered: