Line width - ecdf

21 views
Skip to first unread message

Itzik

unread,
Mar 6, 2017, 3:39:42 AM3/6/17
to Israel R User Group
שלום,

ברצוני לעלות בגרף אחד מספר עקומות של CDF.
אני לא מצליח לשנות לעובי קו הקטן מ-1.
למישהו יש פיתרון?

אני משתמש ב:

plot(ecdf(x))

lines(ecdf(y), lwd=0.5, col=2)



תודה רבה,

איציק


 


ronen

unread,
Mar 7, 2017, 2:58:23 AM3/7/17
to Israel R User Group
שלום
אני לא מומחה באר אבל בעזרה של
par
מופיע ש
The line width, a positive number, defaulting to 1. The interpretation is device-specific, and some devices do not implement line widths less than one. (See the help on the device for details of the interpretation.)
תנסה לייצא את הגרף ל פי-די אפ 
שם נראה שיש אפקט
למשל

> pdf("myfile")
> plot(1:4,1:4,lwd=1,type='l')
> lines(1:4,(1:4)/2,lwd=0.5)
> dev.off()
רונן

Itzik

unread,
Mar 8, 2017, 2:37:28 AM3/8/17
to Israel R User Group
תודה רונן,
זה אכן עובד, אבל לא עבור ECDF. ניתן להשתמש ב cex על מנת להקטין את הצורה עימה משרטטים את הפונקציה.
נראה לי שפשוט אשתמש בחבילה Hmisc שמאפשרת גם הצגה יפה.

תודה רבה,
איציק

בתאריך יום שלישי, 7 במרץ 2017 בשעה 09:58:23 UTC+2, מאת ronen:
Reply all
Reply to author
Forward
0 new messages