Nourhène Alaya
2014-Jun-24 14:40 UTC
[R] Need help to understand ecdf (empirical cumulative distribution function)
Hi, I m a new user of R. I need to plot distribution of some computed centrality metrics of my network. I used ecdf to compute the cumulative distribution of degrees and then plotted the resultat. However, i got a different distribution from the one computed using the degree.distribution function from the igraph package !? Can you help me figure out which of them is the correct one. The two plots are joined to this mail. #The degree Vector of the graph's nodes dd<-degree(graph) #degree distribution with igraph dist<-degree.distribution(graph, cumulative=TRUE) #degree distribution with ecdf decdf<- ecdf(degree(dd) -- Cordialement, Nourh?ne ALAYA Ing?nieur Informatique, Doctorant ? la facult? des sciences de Tunis, Doctorant ? l'universit? de Paris 8