[R] trimming plotting area in a boxplot

Patrick Kuss patrick.kuss at unibas.ch
Sat Nov 25 02:21:06 CET 2006


Hello all,

I am trying to trim the plotting area in a boxplot, such that the space 
between the plot margins (left and right) are of identical size as 
between the boxes.
In the example below I want to get rid of the space outside of the 
abline().

I appreciate any suggestions.

Factor = LETTERS[1:5]
A = c(1:5); B = c(2:6); C = c(1:5); D = c(3:7); E = c(1:5); F = c(4:8)
df = data.frame(A,B,C,D,E,F)
boxplot(df)
abline(v=c(0.5,6.5))

Cheers, Patrick



More information about the R-help mailing list