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

RE: st: RE: barplot x-axis labels


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: barplot x-axis labels
Date   Mon, 28 Feb 2005 16:20:09 -0000

You no longer need the -showyvars-... the -ascategory- tells Stata to treat your variables as if they were categories, which get labelled by default. Using both options together it is trying to label both variables and categories within variables (of which there are none).

David

-----Original Message-----
From: Arnold Kester [mailto:[email protected]]
Sent: 28 February 2005 16:12
To: [email protected]
Subject: Re: st: RE: barplot x-axis labels


Dear David,

Thanks for your input, but it seems I'm still missing something:

This gives me a superfluous "1" below each bar (and below that the
wanted text.

graph bar (mean) Nose= BiopNose Kidney= BiopKidney ///
  Lung= BiopLung Skin= BiopSkin Muscle= BiopMuscle, ///
  ascategory  showyvars nolabel

Arnold

David Harrison wrote:
> Actually, there is another way which may be better (and as it happens
> is in the dialog box): use the option -ascategory- to treat the y
> variables as if they were the first (and in this case only) -over()-
> category. This also makes all the bars look the same and puts gaps
> between them, avoiding most of the rest of your code. You will still
> want -nolabel- to label them with variable names instead of labels
> ("mean of...").
> 
> David
> 
> -----Original Message----- From: Arnold Kester
> [mailto:[email protected]] Sent: 28 February 2005 13:35 
> To: [email protected] Subject: Re: st: RE: barplot
> x-axis labels
> 
> 
> 
> Op 02/28/2005 01:45 PM schreef David Harrison:
> 
>> You need the options -showyvars- and -nolabel- instead of 
>> -blabel(name)-.
> 
> 
> Ah, that works. Thanks a lot. I overlooked it. Doesn't seem to be in
> the -graph bar- menu either. Help file says it is "rarely specified".
> I'm doing something very unusual, it seems.
> 
> 
> * *   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/



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27-2-05

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



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