[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] plot a power-law distribution figure
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] plot a power-law distribution figure |
Date: |
Fri, 6 Feb 2015 21:03:37 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hello,
> I am using the R package of igraph. I know there is a function named
> "power.law.fit" to calculate the parameters of the distribution.
> I wonder how can I plot a figure, which shows the degree distribution with a
> fitted line (like the attached figure).
The page below shows an example, although it uses a different fitting method
(not the built-in power.law.fit function):
http://chengjun.github.io/web_data_analysis/demo2_simulate_networks/
(See the last example on that page).
As a sidenote, I think it is much better to create a figure that shows the cdf
of the degree function instead of the pdf because the tail tends to be less
noisy for the cdf. (Also, there is only a difference of 1 between the exponent
of the cdf and the exponent of the pdf in case of a power-law).
Best,
--
T.