Jose Borreguero
2007-Jun-20 20:02 UTC
[R] how to create cumulative histogram from two independent variables?
Hi all, I am extremely newbie to R. Can anybody jump-start me with any clues as to how do I get a cumulative histogram from two independent variables, cumhist(X,Y) ? -jose [[alternative HTML version deleted]]
Mike Lawrence
2007-Jun-21 17:29 UTC
[R] how to create cumulative histogram from two independent variables?
?plot.ecdf plot.ecdf(rnorm(100),rexp(100)) On 20-Jun-07, at 5:02 PM, Jose Borreguero wrote:> Hi all, > I am extremely newbie to R. Can anybody jump-start me with any > clues as to > how do I get a cumulative histogram from two independent variables, > cumhist(X,Y) ? > -jose > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.-- Mike Lawrence Graduate Student, Department of Psychology, Dalhousie University Website: http://memetic.ca Public calendar: http://icalx.com/public/informavore/Public "The road to wisdom? Well, it's plain and simple to express: Err and err and err again, but less and less and less." - Piet Hein
Jim Lemon
2007-Jun-22 11:36 UTC
[R] how to create cumulative histogram from two independent variables?
Jose Borreguero wrote:> Hi all, > I am extremely newbie to R. Can anybody jump-start me with any clues as to > how do I get a cumulative histogram from two independent variables, > cumhist(X,Y) ? > -jose >Hi Jose, Is this something like you want? var1<-sample(1:10,100,TRUE) var2<-sample(1:10,100,TRUE) barplot(rbind(hist(var1,plot=FALSE)$counts,hist(var2,plot=FALSE)$counts)) Jim