Error plotting Wiki example 1

Issue #29 new
Brian Davis created an issue

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)

  1. jorgefabrega

    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

  2. Brian Davis reporter

    Thanks! That was it. It works in the RGui but not in RStudio! I'll file a bug report with them.

  3. jbkunst

    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:

    What do you think George? I think we can implement some of them and give a option argument like:

    plot(gefxobject, package = "networkD3").

    Regards.

  4. Log in to comment