0

I have the following boxplots enter image description here

as you can see my problem is that the lables are not fitting in my figure since they are exceeding the margins of the figure, I tried to use the par function and its mars attribute that shows the margins, but didn't work for me, I used par(par()$mar+c(10,0,0,0))

If you got any idea for my problem please let me know

4

1 回答 1

4

您似乎没有将新创建mar的参数分配给mar参数

相比

d <- data.frame(a=1:5,b=1:5)
boxplot(d)

# your call was
# par(par()$mar+c(10,0,0,0)) which doesn't specify which 
# par is being set (and returns NULL, (A vague hint that it isn't working properly)
par(mar = par('mar') + c(10,0,0,0))
boxplot(d)
于 2013-03-21T21:54:56.237 回答