Statalist


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

Re: st: add xtitle to -graph bar-


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: add xtitle to -graph bar-
Date   Thu, 17 Apr 2008 08:41:37 +0100 (BST)

Are you sure you don't want -ytitle("Mean values")- instead of
-xtitle("mean values")-, since the mean values are plotted on the
y-axis, and this is allowed with -graph bar-, otherwise you'll have to
create the data you want to plot, and plot them using -twoway bar-.

Hope this helps,
Maarten

--- Zhiqiang Wang <z.wang@uq.edu.au> wrote:

> Hi 
> 
> I tried the following and get an error message. 
> . sysuse auto
> (1978 Automobile Data)
> . graph  bar (mean) weight length  trunk mpg, by(for) xtitle(Mean
> values)
> xtitle(Mean values) not allowed, xaxis1 does not exist
> r(198);
> 
> 
> I have used -b1(Mean value)- and -b2(Mean value)- options. Both
> worked
> fine but not what I want. I want to have one title for both graphs.
> Any
> suggestions would be appreciated. Thanks.
> 
> Zhiqiang 
> ---
> Zhiqiang Wang, PhD
> School of Medicine, University of Queensland
> Room 317, Edith Cavell Building
> Royal Brisbane & Women's Hospital
> Herston QLD 4029
> Australia
> Tel: +61 7 3346 4811
> Fax: +61 7 3346 4812
> Email: z.wang@uq.edu.au
> 
> 
> *
> *   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/
> 


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      ___________________________________________________________ 
Yahoo! For Good helps you make a difference  

http://uk.promotions.yahoo.com/forgood/
*
*   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