Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: overlapping histograms


From   "Scott Merryman" <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: overlapping histograms
Date   Mon, 29 Sep 2008 10:12:51 -0500

Last month on, August 24, there was thread on bihistograms that might be useful.

Scott


On Mon, Sep 29, 2008 at 10:02 AM, Jeph Herrin <junk@spandrel.net> wrote:
>
> I've been trying to create a graph which shows
> two overlapping histograms - I'm trying to show
> how the distribution for a quantity if interest
> has shifted from time A to time B.
>
> Putting two histograms on one graph is not the
> problem
>
>  twoway (histogram myvarA) (histogram myvarB)
>
>
> but the problem is that one obscures the other. I
> can make the one on top "clear" (specify -color(none)-)
> but because the bars line up it still difficult to
> distinguish them. So I'm looking for a way to do
> either
>
> 1. make the overlapping areas a darker color than
>   either histogram is alone
> 2. shift the bars for one histogram so that the one
>   behind can be seen ever so slightly
>
> Is there a way to do either? Is there a better solution?
>
> thanks in advance,
> Jeph
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index