Hi,
perhaps the example at
http://igraph.sourceforge.net/screenshots2.html#8
helps.
Best,
Gabor
On Tue, Apr 20, 2010 at 6:42 PM, Narges Zarabi <narges.zarabi at
gmail.com> wrote:> 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(dd,log="xy")
> abline(fit)
>
> Thanks in advance.
> Regards, *Narcissus*
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Gabor Csardi <Gabor.Csardi at unil.ch> UNIL DGM