Skip to content
Prev 76535 / 398502 Next

Spacing and margins in plot

Jamieson Cobleigh wrote:

            
For the size of margins see ?par and its argument "mar", for the 
position of the x-axis label, add it in a separate call to title() and 
specify the "line" where to add the text as in:

   par(mar = c(1, 4, 0, 0) + 0.1)
   plot(c(1,2,2,3,3,3), type="p", pch=20, ylab="Y Label",
       xlab="", xaxt="n")
   title(xlab="X Label", line=0)


Uwe Ligges