I have a random graph in R, I use method erdos.renyi.game
to generate random graph and I want to generate a line graph for output, my output will be degree distribution of my graph.
my code:
library(igraph)
graph <- erdos.renyi.game(n=100, 0.2, type = c("gnp"), directed=FALSE, loops=FALSE)
d <- degree.distribution(graph)
plot(d)
but my output is Dot plot.!