There are 2 margin areas in R plots: “margin” and “oma”.  You can control their size calling the par function before your plot and giving the corresponding arguments:

– mar() for margin.

– oma() for outer margin area.

For both arguments, you must give four values giving the desired space in the bottom, left, top and right part of the chart respectively. For example, par(mar=c(4,0,0,0)) draws a margin of 4 lines only on the bottom of the chart.

You can use mai() and omi() if you want to set the areas in inches and not in lines.

I inspired from here, have a look to get more details!

Not what you are looking for ? Make a new search !


Leave a Reply

Be the First to Comment!

Notify of