Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: box plots


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: box plots
Date   Wed, 7 Apr 2010 18:42:29 +0100

However, I think it's true that no graph command for the new graphics
(Stata 8 up) supports variable-width box plots. 

My own program -stripplot- from SSC certainly does not. My own view is
that if you have enough space to vary the widths, you might as well show
more detail. No one has to agree with this, but equally it's evident
that no recent Stata programmer has felt compelled to support
variable-width box plots. 

What you want is programmable in current Stata but not trivially so.
You'd need to superimpose several calls to -twoway rbar-, etc. extending
the details given in 

SJ-9-3  gr0039  . . . . . . . . Speaking Stata: Creating and varying box
plots
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N.
J. Cox
        Q3/09   SJ 9(3):478--496                                 (no
commands)
        explains how to use egen to calculate the statistical
        ingredients needed for box plots and variations of box
        plots; shows the use of twoway to then create the plots

Nick 
n.j.cox@durham.ac.uk 

Nick Cox

Possible in official Stata for many years: 

. sysuse auto 
. graph7 price, by(foreign) box vwidth

Maul Eugenio

Does anyone know of a program to create boxplots, with box width
proportional to group size?


*
*   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   |   Site index