boncey / Flickr4Java

Java API For Flickr. Fork of FlickrJ
BSD 2-Clause "Simplified" License
176 stars 155 forks source link

R network plot nodes labels #642

Closed lallicham closed 2 years ago

lallicham commented 2 years ago

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

Please copy paste the log here if available