[R] A stepfun question

pavel koulikov pavel at koulikov.com
Fri Jan 24 16:44:05 CET 2003


Hi
I have a sample of data  and I need to generate Empirical distribution plot. That's easy 

u=c(1,2,2,3,4,2,1,3,4,5,6,2)
h=ecdf(u)
plot(h,verticals=TRUE,lwd=2)

But i need P axis to be X. (horizontal) instead of Y as it is by default....So basically I need to flip the graph..
Please help




More information about the R-help mailing list