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

Issue: Error in PathAttr #190

Closed
mweberr opened this issue Aug 14, 2019 · 1 comment
Closed

Issue: Error in PathAttr #190

mweberr opened this issue Aug 14, 2019 · 1 comment
Milestone

Comments

@mweberr
Copy link

mweberr commented Aug 14, 2019

I run the sample code

library(ggraph)
library(igraph)
 graph <- graph_from_data_frame(highschool)
 
# Not specifying the layout - defaults to "auto"
ggraph(graph) + 
geom_edge_link(aes(colour = factor(year))) + 
geom_node_point()

Using nicely as default layout
Error in pathAttr(data, length(unique(data$group))) :
Not compatible with requested type: [type=character; target=integer].

RV 3.6.0
ggraph LATEST from devtools githutb

@thomasp85 thomasp85 added this to the ggraph v2.0.0 milestone Aug 15, 2019
@mschubert
Copy link

For other people finding this via the search function:

This error also occurs with the current CRAN version of ggraph (1.0.2).

Fix is to install from devtools::install_github("thomasp85/ggraph") (or wait for the next release, I suppose)

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

3 participants