Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: Histogram % sign


From   Nick Cox <njcoxstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Re: Histogram % sign
Date   Tue, 11 Jun 2013 08:04:16 +0100

The posting cited says precisely nothing about % signs.

But the method there can easily be extended to show % signs too. The key step is

gen percent = string(pc, "%2.1f")  + "%"

As far as -catplot- (SSC) is concerned,  it is and will remain true
while under it's under my control that -catplot- will not (be able to)
show % signs on top of bars.

Even for groups of readers under age 7 or senior executives, should
not be mentioning percent, percentage or % once somewhere be enough?
Nick
njcoxstata@gmail.com


On 11 June 2013 05:59, Michael Stewart <michaelstewartresearch@gmail.com> wrote:
> Dear Statalist users,
>
> I am generating multiple histograms and trying to place % sign on top
> of the  bars as  mentioned by Nick cox in
> http://www.stata.com/statalist/archive/2003-09/msg00056.html
> Is there a simpler way to do it in stata OR are there any user written
> programs . ( The catplot suggested by Nick Cox doesnt' show the %).
>
> Along the same lines, is it possible to format the bar label to round
> them to nearest whole numbers.Looks like the format option is not
> available  in bar label properties.
>
> As always , thank you very much for your time and effort.
> --
> Thank you ,
> Yours Sincerely,
> Mike.
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index