0

I am trying to get the semi-log graph of the degree distribution. I have managed to get out the loglog of the degree distribution with the below code. What should I change in the code to give me out the semi-log of the degree distribution? I tried changing log='xy' to semilog='lm' but it is giving me out the wrong plot. Thank you!

d.power <- degree(Power)
dd.power <- degree_distribution(Power)
d <- 1:max(d.power)-1
ind <- (dd.power != 0)
plot(d[ind], dd.power[ind], log="xy", col="blue", xlab=c("Log-Degree"), ylab=c("Log-Intensity"),                             main="Log-Log Degree Distribution")

I tried changing log='xy' to semilog='lm' but it is giving me out the wrong plot.

0 Answers0