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

From |
Richard Goldstein <richgold@ix.netcom.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: RE: labels on bar graphs |

Date |
Tue, 01 Jul 2008 10:24:36 -0400 |

I agree that Nick's suggestion would solve my, and other people's, problem completely

I also did not understand Frank's comment

Rich

Nick Cox wrote:

A percent format (with notional syntax) might look something like this:

With format %2.0p .15 would display as 15 %3.1p .154 15.4 %2.0ps .15 15%

%2.0pbs .15 15 %

%3,1pbs .151 15,1 %

So that p signals percent, s an explicit sign and b an explicit blank

before the sign.

I believe that this would solve Rich's problem completely. I don't

understand Frank's comments to the contrary.

Of course, that is all a "would". Only StataCorp can do that, or

something similar.

Meanwhile, I intend to update -mylabels- on SSC to allow user-specified

prefix and suffix text. That is one thing that can be done as a step in

the same direction.

Incidentally, I also disagree with Frank, very mildly, on the broadening

of this thread. Martin's comments seemed to me a fair expression of a

defensible point of view that was entirely consistent with Rich's

original question.

Nick

n.j.cox@durham.ac.uk

Richard Goldstein

I think that if Stata had an automatic way to turn proportions (mean of a 0/1 variable) to percents, with the percent sign (as an option I guess), that would have completely solved my problem

Since my client is insisting on the presence of the % sign, the simple solution (multiply by 100) sent by Amanda does not work for me

Martin Weiss

Well, obviously I hit a sore spot with my "straw man", given that it attracted a few replies... Maybe I should have turned that into a newthreadFrank de Liberothough, to keep Rich`s other concerns alive. Sorry for that.

Rich originally asked for help not only to display "%" but much more.That'show I read his message (below). Then Martin (see below Rich's message) introduces what seems to be a straw man: [Why should users be forced] go to such lengths for a mundane tasklikelabeling with percentages... And the thread then went adrift given the general frustration(includingmine) about not having an enhanced -format- that includes "%". But asI readRich's original post, he was asking for a method that helped automatetheplacement and value of the label, and then attaching a "%". The"cleversolutions" were not so much about displaying a "%" as they were aboutwhereto display it and automatically display the value. A simple change inthe-format- command or equivalent would not solve all that. I think the subsequent aspersions on Stata are unfair and stray from the original question.Martin WeissAll these clever solutions have a funny tendency to remind me of onething:a software that takes prides in its graph capabilities should notforceRichard Goldsteinusers to go to such lengths for a mundane task like labeling with percentages...

I need to produce a sizable number of bar graphs for a client. The client wants the y-axis to be labeled as, e.g., "15%" rather than as, e.g., .15. The range of proportions for these graphs varies quite abit

(from a max of less than .05 to a max of over .2) so I don't want to force them all to be the same.get

After seeing a graph, it is easy enough to use the ylabel option to

what I want. Given that I am generally willing to live with Stata's automatic choice of tick marks, is there a way to automatically get labels in the form I want (e.g., "15%") rather than the way Statawants

(e.g., .15)?

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

**Follow-Ups**:**Re: st: RE: RE: labels on bar graphs***From:*"Michael Blasnik" <michael.blasnik@gmail.com>

**References**:**st: RE: RE: labels on bar graphs***From:*"Martin Weiss" <martin.weiss@uni-tuebingen.de>

**Re: st: RE: RE: labels on bar graphs***From:*Richard Goldstein <richgold@ix.netcom.com>

**RE: st: RE: RE: labels on bar graphs***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**RE: st: RE: RE: labels on bar graphs** - Next by Date:
**AW: st: table of deviance after multiple regression!** - Previous by thread:
**RE: st: RE: RE: labels on bar graphs** - Next by thread:
**Re: st: RE: RE: labels on bar graphs** - Index(es):

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