You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem is that the curve plotted in "D" is shown out of the margins. As it is exactly the same plot as in "B", and in "B" there is no problem with margins, I suppose this is somehow related to the plot of the graph in "C".
Also, if the graph is plotted as the second plot It affects both sine-waves, so it seems that plotting the graph affects all subsequent plots. It affects all plots in subsequent plots to the same window. The window needs to be closed to correct this.
The same problem happens when I use the function graphics::layout instead of par(mfrow) and the same problem persists.
I wonder if it is a bug of plot.igraph. I am using R "3.0.2" and Igraph "0.7.1" installed in a machine with Ubuntu 14.04.
Thanks for any help
The text was updated successfully, but these errors were encountered:
Dear all,
I am trying to depict 4 plots in the same figure using par(mfrow=c(2,2)) to organize the plots. As the example below:
library(igraph)
g<-erdos.renyi.game(30,0.4)
x<-1:100;
par(mfrow=c(2,2))
hist(degree(g),main="A");
plot(x,sin(x),type="l",xlab="x",ylab="sin(x)",xlim=c(10,60),main="B")
plot(g,main="C");box();
plot(x,sin(x),type="l",xlab="x",ylab="sin(x)",xlim=c(10,60),main="D")
My problem is that the curve plotted in "D" is shown out of the margins. As it is exactly the same plot as in "B", and in "B" there is no problem with margins, I suppose this is somehow related to the plot of the graph in "C".
Also, if the graph is plotted as the second plot It affects both sine-waves, so it seems that plotting the graph affects all subsequent plots. It affects all plots in subsequent plots to the same window. The window needs to be closed to correct this.
The same problem happens when I use the function graphics::layout instead of par(mfrow) and the same problem persists.
I wonder if it is a bug of plot.igraph. I am using R "3.0.2" and Igraph "0.7.1" installed in a machine with Ubuntu 14.04.
Thanks for any help
The text was updated successfully, but these errors were encountered: