Skip to content

comparing 3 datasets

1 message · Jonathan Baron

#
I can solve this problem, not the other one.  Here is an example,
the results of which are about half way down the page on:
http://www.psych.upenn.edu/courses/psych1_Fall2000/a4help.htm

The critical thing is using the different format for "breaks,"
which specifies the cutoffs rather than the number of them.  This
way you can use the same cutoffs for all the histograms.

par(mfrow=c(4,1))
hist(female$current,breaks=10*1:10,freq=FALSE,ylim=c(0,.1))
hist(female$ideal,breaks=10*1:10,freq=FALSE,ylim=c(0,.1))
hist(female$attract,breaks=10*1:10,freq=FALSE,ylim=c(0,.1))
hist(male$otherattract,breaks=10*1:10,freq=FALSE,ylim=c(0,.1))

Jon Baron

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._