מיקום טקסט יחסית לצירים

8 views
Skip to first unread message

david golan

unread,
Apr 15, 2014, 4:34:46 PM4/15/14
to israel-r-...@googlegroups.com
שלום לכולם,


אני רוצה להכניס רווח בין הכיתוב שמתחת לציר X, לציר X. כאשר הכיתוב מכיל שתי שורות, הטקסט נוגע בטיקים של הציר וזה די מעפן. 
אם למישהו יש פתרון פשוט ומהיר, אני אודה לו מאוד.

אפשר לראות את הבעיה בהרצת הקוד הבא:

a = rnorm(100)
b = rbinom(100,1,0.5)
names=c("First\ngroup","Second\ngroup")
boxplot(a ~ b,names=names)


תודה רבה וחג שמח.
דוד. 

Tal Galili

unread,
Apr 15, 2014, 5:26:10 PM4/15/14
to israel-r-...@googlegroups.com
אני חושב ש mgp יפתור את הבעיה:

a = rnorm(100)
b = rbinom(100,1,0.5)
names=c("First\ngroup","Second\ngroup")
par(mgp = c(3,2,0))
boxplot(a ~ b,names=names)





2014-04-15 23:34 GMT+03:00 david golan <golan...@gmail.com>:
a = rnorm(100)
b = rbinom(100,1,0.5)
names=c("First\ngroup","Second\ngroup")
boxplot(a ~ b,names=names)




----------------Contact Details:-------------------------------------------------------
Contact me: Tal.G...@gmail.com
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)
----------------------------------------------------------------------------------------------

david golan

unread,
Apr 15, 2014, 5:28:53 PM4/15/14
to israel-r-...@googlegroups.com
אכן פותר את הבעיה!
תודה רבה טל.






--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages