Re: [R] two histograms in the same graph

From: David Daniel <>
Date: Fri, 25 Jan 2008 12:16:22 -0700

You might look at the method histbackback (back-to-back histograms) in package Hmisc. At the time I looked at this package about a year ago, I could not get it working on my Mac, so I don't actually know what the results look like, but I have created them before in XLispStat and found them useful. From posts I've seen more recently, I believe that whatever the problem I was encountering previously on the Mac has been resolved.


> I have two vectors x and z, and I want to display the histograms of
> both
> vectors in the same graph, x in red bars, z in blue bars.
> If you have any clue on how to do that, I will be very glad to hear
> it!!!!!!
> Thanks in advance again,

David Daniel
Associate Professor
University Statistics Center
New Mexico State University mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 25 Jan 2008 - 19:21:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 Jan 2008 - 21:30:09 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive