I'm new in this community, hopefully I'll write the post correctly.
I'm trying to plot 10 graphs with a for loop. I divided my screen with the function par and I got the error message Error in plot.new() : figure margins too large. I've looked it up and it seems that the problem is the dimension of the Viewer Pane, but I didn't find how to reset the size. I've tried manually by enlarging the area with no results. I've also tried to make the single plot smaller with the layout setting but unsuccessfully.
Here's the code
par(mfrow=c(5,2))
for (i in 1:10) {
plot(y.tr.ols[,i], y.te.ols[,i],pch=3)
}
where y.tr.ols and y.te.ols are two matrix of size 23x10.