I have a dataframe which contains 23 continuous variables. Before I start analyzing the data, I want to check for correlations.
I usually do this by the pairs()
function, like this:
pairs(mydata, lower.panel = panel.smooth2,
upper.panel = panel.cor, diag.panel = panel.hist)
Of course, I have specified the panels beforehand with a function.
Now when I want to do this with my data containing 23 variables, thus producing a 23 x 23 matrix of plots, I get the following error:
Error in plot.new() : figure margins too large
It looks like I have to adjust my plot size or something. How do I do this?