[R] Histogram to compare two datasets

Johan van Niekerk jo at compbio.dundee.ac.uk
Fri Apr 21 10:48:25 CEST 2006

Dear All,

I am trying to create a histogram-like plot for comparing two datasets - 
For each interval, I want it to draw 2 bars - one for representing the 
number of values in each dataset for that interval.

I have looked at the help for the hist() function and also for the 
histogram() function that is part of the lattice package, and neither 
seem to support multiple datasets.

Could someone please point me in the right direction?

Kind regards,
Johan van Niekerk

More information about the R-help mailing list