Dear all, I am trying to plot 4 different plots in the same figure using graphics::layout to organize the plots. The code below reproduces more or less what I am doing:
library(igraph) g<-erdos.renyi.game(30,0.4) x<-1:100; m<-rbind(c(1,1,1,2,2,2),c(1,1,1,2,2,2),c(1,1,1,2,2,2),c(3,3,3,4,4,4),c(3,3,3,4,4,4),c(3,3,3,4,4,4)); layout(m); 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" (that is exactly the same as in "B") is shown out of the margins. I suppose it is out of margins because I plot a graph right before "D". Does any of you have any idea if plotting a graph can have any effect in the margins of the next plot? Any clue about how to solve this problem? Thanks for your attention, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
