Hi, Please help! I need to plot a degree distribution.

so far (see below) i have the following but the problem: i'm plotting the graph. instead I need to plot the degree distribution.

library(igraph)

dat<- read.graph(file="tf.net", format="pajek")

dat<- as.undirected(dat, mode = c("each"))

is.directed(dat)

[1] FALSE

degree.distribution(dat, cumulative = TRUE, loops = FALSE)

[1] 1.000000000 0.792857143 0.478571429 0.292857143 0.192857143 0.142857143 0.114285714 0.085714286
[9] 0.078571429 0.071428571 0.064285714 0.050000000 0.035714286 0.028571429 0.028571429 0.014285714

[17] 0.014285714 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857
[25] 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857

[33] 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857
[41] 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857 0.007142857

plot(dat) 


the file tf.net can be found at http://fileshare.csb.univie.ac.at/cheat14/INPUT/

any help much appreciated!


	[[alternative HTML version deleted]]

