2013-03-21 93 views
0

我有以下的箱圖 enter image description here[R製冰空間標籤

,你可以看到我的問題是,標貼是不是我的身影,因爲它們超出了數字的邊緣配合,我試着使用相提並論功能及其火星屬性,顯示的利潤,但對我沒有工作,我用標準桿(標準桿()$三月+ C(10,0,0,0))

如果您對我的問題有任何想法,請讓我知道

回答

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) 
+0

'面值(「月」)'是最常用的,不'面值()$ mar'。 – 2013-03-21 21:57:49

+0

@GavinSimpson - 非常真實,修正了我的懶惰。 – mnel 2013-03-21 21:58:52