briatte / ggnet

Network visualization with ggplot2
https://briatte.github.io/ggnet/
194 stars 33 forks source link

could not find function "arrow" #15

Closed vikasrawal closed 8 years ago

vikasrawal commented 8 years ago

Why am I getting this error?

net = rgraph(10, mode = "graph", tprob = 0.5) net = network(net, directed = FALSE) network.vertex.names(net) = letters[1:10] ggnet(net) Error in do.call("layer", list(mapping = mapping, data = data, stat = stat, : could not find function "arrow"

briatte commented 8 years ago

For clarity: this error was probably due to your versions of the ggplot2 and/or scales packages. The example works fine with the current latest versions.

I'll update the README of the repository, it's outdated right now.