r - How to create a path.length.hist diagram? -


with igraph/r create diagram shows path lenght histogram. can histogram values through path.length.hist-command, don't know how plot results. great if me find right code that.

these values:

 $res     [1]   7058  83638 124106  97151  43111   4630    354      7      $unconnected     [1] 32447 

not sure if want achieve, can try :

tab <- as.table(path.length.hist(g)$res) names(tab) <- 1:length(tab) barplot(tab) 

enter image description here


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -