Monday, June 4, 2012

Matched Sets of Graphs in R

Sometimes you may want to see grpahs side by side in R.  To accomplish this you can use the function

par(mfcol=c(2,4))

You can change the numbers within this function depending on how mnay graphs you want to appear together and which ones you want next to each other.  The first number specifies the number of rows of graphs that will appear, in this case 2.  The second number specifies the number of graphs that will appear in each row, in this case 4.

No comments:

Post a Comment