Statalist The Stata Listserver


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

RE: st: label graphs


From   Philip Ryan <[email protected]>
To   [email protected]
Subject   RE: st: label graphs
Date   Fri, 22 Dec 2006 09:46:39 +1030

see -help graph twoway bar-

Phil




At 09:17 AM 22/12/2006 +1100, you wrote:
Thanks for the reply.

Maybe my initial question is better illustrated as follows:

Column 1   Column 2
1               4
3               10
4               21
5               4
6               3

So, I want to graph the frequency which is represented by Column 2, but the
x-axis to be expressed by figures in column 1.

Currently, when I put in .tw hist column 2, by(column 1)it gives me 5
individual graphs. What I would like to get is one single graph, column 1 as
the x-axis label with the 'frequency' to be expressed by figures in column
2. Do-able?

Cheers!

Lucy

Lucy Shum


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Clive Nicholas
Sent: 11 December 2006 17:03
To: [email protected]
Subject: Re: st: label graphs

Lucy Shum wrote:

> Hi all, what command is required in order to include individual figures on
> each of the column in a histogram/ bar graph?

Try -blabel(bar)- or -blabel(total)-.

> Further, when I generate twoway histgrams, how should I go about labeling
> each of the graphs? Subtitle(" ... ") subtitle(" ... ") ??

I'm not clear about this, but if you mean the _axes_ of the -twoway hist-
graph, they will automatically be labelled if the variables are already.
Subtitling any graph using -subtitle()- means a fitting a legend that
appears immediately below the main -title()- of the graph, which appears
above the graphic. Is this what you mean?

CLIVE NICHOLAS        |t:
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather
conditions.

*
*   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/



*
*   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/
Philip Ryan
Associate Professor,
Discipline of Public Health

Director, Data Management & Analysis Centre

Associate Dean (IT)
Faculty of Health Sciences

postal address:
Department of Public Health
Mail Drop 511
University of Adelaide 5005
South Australia

location:
Level 6
Bice Building
Royal Adelaide Hospital
North Terrace
Adelaide

tel 61 8 8303 3570
fax 61 8 8223 4075
http://www.public-health.adelaide.edu.au/
CRICOS Provider Number 00123M
-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index