When I create my simple plot without labels, the connections between nodes are correct. as soon as i specify node labels the connections appear in the plot that I never specified
The plot renders correctly, after adding the vertex.label command it should match the name of the node to the assigned number
Actual behaviour
the plot forms correctly, after adding the vertex.label command the names are assigned but they do not match. the names do not reflect the correct relationships but the numbers do. I assume there is something wrong with the nf1 file but i cross checked it and it seemed regular.
Please help!
Thank you
Network node names incorrect
When I create my simple plot without labels, the connections between nodes are correct. as soon as i specify node labels the connections appear in the plot that I never specified
R STUDIO
Steps to reproduce
The network as XLSX ef1.xlsx node names nf1.xlsx
code: ef1 <- read_excel("~/social networks/ef1.xlsx") nf1 <- read_excel("~/social networks/nf1.xlsx") g <- graph.data.frame(ef1, directed = FALSE) plot(g) plott(g, vertex.label=nf1$Label)
Expected behaviour
The plot renders correctly, after adding the vertex.label command it should match the name of the node to the assigned number
Actual behaviour
the plot forms correctly, after adding the vertex.label command the names are assigned but they do not match. the names do not reflect the correct relationships but the numbers do. I assume there is something wrong with the nf1 file but i cross checked it and it seemed regular. Please help! Thank you
Log