Statalist The Stata Listserver

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

Re: st: more graph queries

From   "Svend Juul" <SJ@SOCI.AU.DK>
To   <>
Subject   Re: st: more graph queries
Date   Mon, 23 Oct 2006 09:36:49 +0200

Lukar wrote:

First a simple one... How do I produce a box plot without the whiskers? 

Second I have 3 vars that I want the means of in one graph over strata
When I do this at present it groups them in the graph by strata and I
it grouped by variable.
I want the graph to look like
3 bars representing high, mid, low strata		123	123
Var								 X
Y     Z

Box plot without whiskers and outliers:

   sysuse auto
   graph box price weight, cwhiskers lines(lpattern(blank)) nooutsides

if that is what you want. You might also take a look at -graph twoway

To organize bars by variable, use by(). Here -imargin(zero)- removes the
margin between by-graphs, and note("") eliminates a rather useless note:

   recode rep78 (4 5 = 3)
   graph bar price weight , by(rep78, row(1) imargin(zero) note(""))

Hope this helps


Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone: +45 8942 6090
Home:  +45 8693 7796

*   For searches and help try:

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