Re: [R] Barplot for degree distribution

2011-04-27 Thread David Winsemius
On Apr 27, 2011, at 12:00 AM, kparamas wrote: Thanks for the info. I have 2 degree distributions that have different degrees. Do you mean a different range of values? I want both these barplots to have the same axes. Is this possible? I have used xlim and ylim. ylim works fine for both pl

Re: [R] Barplot for degree distribution

2011-04-26 Thread kparamas
Thanks for the info. I have 2 degree distributions that have different degrees. I want both these barplots to have the same axes. Is this possible? I have used xlim and ylim. ylim works fine for both plots But xlim I am not getting the values till 60. And if I give names(dd) <- 0:60 it gives an e

Re: [R] Barplot for degree distribution

2011-04-26 Thread Dennis Murphy
Hi: Firstly, you should have mentioned that you were using the igraph package; with over 2700 R packages available on CRAN, it's unreasonable to expect folks to know to which package a particular function resides, but you may not have been aware of that fact. It turns out that dd1 is a numeric vec

[R] Barplot for degree distribution

2011-04-26 Thread kparamas
In barplot for degree distribution x-axis is not seen. See the example below > g = barabasi.game(500, 0.4) > dd1 = degree.distribution(g) > plot(dd1, xlab="degree", ylab = "frequency") whereas barplot doesnot have any x-axis > barplot(dd1, xlab = "degree", ylab = "frequency") Please see the fig