- edited description
Error plotting Wiki example 1
I'm new to this so it's probably user error but when I try to plot Example 1 in the Wiki I get an error and I'm not sure how to proceed.
library(rgexf)
people <- data.frame(matrix(c(1:4, 'juan', 'pedro', 'matthew', 'carlos'),ncol=2))
relations <- data.frame(matrix(c(1,4,1,2,1,3,2,3,3,4,4,2), ncol=2, byrow=T))
g <- write.gexf(people, relations)
plot(g, EdgeType="curve")
Error in paste("http://", listenAddr, ":", listenPort, appListi$path, : cannot coerce type 'closure' to vector of type 'character'
Am
Comments (8)
-
reporter -
Hi Brian,
I run your code without problems. What's wrong? My guess: it has to be related with the IDE that you are using.
Best,
Jorge
-
reporter Thanks! That was it. It works in the RGui but not in RStudio! I'll file a bug report with them.
-
repo owner Seems to be an issue for our pal jbkunst! I'm having the same in Rstudio
George G. Vega Yon +1 (626) 381 8171 http://www.its.caltech.edu/~gvegayon/
-
Hi everybody!
I'm not sure what is happening. Anyway I think the plot.gexf function need an unrgent update. This function was developing before the glorious htmlwidgets, that means now we can use the next packages for plot gexf objects:
- http://www.htmlwidgets.org/develop_intro.html#example-sigma.js
- https://christophergandrud.github.io/networkD3/
- http://igraph.org/r/
- http://dataknowledge.github.io/visNetwork/
What do you think George? I think we can implement some of them and give a option argument like:
plot(gefxobject, package = "networkD3").
Regards.
-
repo owner Whatever you want to/have time for implementing! I already have an example with networkD3 in the github.com/gvegayon/twitterreport package
George G. Vega Yon +1 (626) 381 8171 http://www.its.caltech.edu/~gvegayon/
-
Ok, let's implement networkD3 and igraph packages, and then sigmajs beacuse the porformance using d3 with more than 100 nodes is not so good (http://stared.github.io/tagoverflow/?site=stackoverflow&size=100) ;).
I'll try give me some time the next week ;) to start with these implementations.
-
repo owner Awesome!
George G. Vega Yon +1 626 381 8171 http://www.its.caltech.edu/~gvegayon
- Log in to comment