kiotoqq
2010-Dec-16 11:31 UTC
[R] How can I draw a line in empirical distribution function?
I've got the graphic with this: a=c(120,40,75,85,55,75,55,90,90,55,155) plot(ecdf(a)) How can I draw lines to show the lower quatile and upper quartil? I only know there is the argument lines(), but I don't know how to use it -- View this message in context: http://r.789695.n4.nabble.com/How-can-I-draw-a-line-in-empirical-distribution-function-tp3090675p3090675.html Sent from the R help mailing list archive at Nabble.com.
zbynek.janoska@gmail.com
2010-Dec-16 11:58 UTC
[R] How can I draw a line in empirical distribution function?
I believe that functions yline {fields} xline {fields} are what you?re looking for try to type yline(c(.25,.75)) That shoud do that Best Regards Zbynek Janoska -- View this message in context: http://r.789695.n4.nabble.com/How-can-I-draw-a-line-in-empirical-distribution-function-tp3090675p3090711.html Sent from the R help mailing list archive at Nabble.com.
Dieter Menne
2010-Dec-16 14:21 UTC
[R] How can I draw a line in empirical distribution function?
zbynek.janoska at gmail.com wrote:> > I believe that functions > yline {fields} > xline {fields} > are what you?re looking for > try to type > yline(c(.25,.75)) >It work, but one should avoid pulling in a special package for such a job. xline is defined as function (x, ...) { abline(v = x, ...) } so better use abline. Dieter -- View this message in context: http://r.789695.n4.nabble.com/How-can-I-draw-a-line-in-empirical-distribution-function-tp3090675p3090941.html Sent from the R help mailing list archive at Nabble.com.