Narges Zarabi
2010-Apr-20 16:39 UTC
[R] Visualize a fitted line in a log plot of a power law distribution
Hi, I am trying to fit a line in the log plot of my networks degree distribution to show that it is a power-law distribution. I am using the following commands. However, I am not able to see the fitted line. Any comments to help? I am using following packages: igraph, splines,base,VGAM, netmodels. g is my network, d is the degree of nodes in the network, and dd is the degree distribution d <-degree(g) dd <- degree.distribution(g) fit<power.law.fit(d,20) plot(d,log="xy") abline(fit) Thanks in advance. Regards, *Narcissus* [[alternative HTML version deleted]]