Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Histograms (was: Multiple (overlaid) Histogram)


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Histograms (was: Multiple (overlaid) Histogram)
Date   Thu, 29 May 2003 21:47:25 +0100

Richard Goldstein
 
> I very strongly disagree with Nick's conclusion
> here (even taking it as somewhat tongue-in-cheek):
> 
> For any graphic command that has an option such
> as bin (histogram), bwidth (lowess), width (kdensity),
> I would very much like to see dynamic graphics -- i.e.,
> a slider such that I can change, e.g., the number of 
> bins in real time and see what kind of difference
> it makes to the graph.
> 
> Would anyone else like to see something like this?
>  
> Nick Cox wrote:
> > -histogram- needs no improvement. It is perfect. (No, I 
> didn't write
> > it.)

Gee, sometimes the jokes do fall flat. 

Yes. I would like to see that too. 

While I am waiting for Stata Corp to implement 
it, I can do stuff like this: 

foreach w of num 0.5(0.1)2.5 { 
	histogram turn, w(`w') caption(`w') 
} 

That is _not_ what Richard is asking for, but 
it has its uses. 

Actually, Stata with this data set is too fast for 
me to appreciate each graph before it passes. Two 
possible solutions: 

1. Stata could slow down the graphics in Stata 8. 

2. Use -more-: 

foreach w of num 0.5(0.1)2.5 { 
	histogram turn, w(`w') caption(`w') 
	more 
} 

P.S. one of these possibilities is a joke. 
Seriously. 

Nick 
n.j.cox@durham.ac.uk 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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