Hi,
I am VERY new to R and am trying to plot a graph and nothing is showing in the plot window - what am I missing?
I don't see an error message to say I am inputting it incorrectly?
Thanks so much!
Meghan
Hi,
I am VERY new to R and am trying to plot a graph and nothing is showing in the plot window - what am I missing?
I don't see an error message to say I am inputting it incorrectly?
Thanks so much!
Meghan
Please show the code you are running. The best version would be to show code that can be copied and produces the data and the plot.
library(igraph)
myfirstnetwork<- graph(edges = c("Alice","Sam", "Sam","David", "David","Alice"), directed = FALSE)
plot (myfirstnetwork)
I have never used that package and looking at the documentation, I do not understand most of the words. Nevertheless, give this a try
make_graph(edges = c("Alice","Sam", "Sam","David", "David","Alice"), directed = FALSE)
If that does not work, we will have to wait for someone familiar with the package to com along.
Both
myfirstnetwork<- graph(edges = c("Alice","Sam", "Sam","David", "David","Alice"), directed = FALSE)
plot (myfirstnetwork)
and
make_graph(edges = c("Alice","Sam", "Sam","David", "David","Alice"), directed = FALSE)
worked for me (slightly different plots).
Great - now I am wondering if there is any way to add label names for vertices from a separate excel file.
I can make a separate thread as code is different?
Thanks!
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.