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: Labels and pie charts


From   Friedrich Huebler <fhuebler@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: Labels and pie charts
Date   Tue, 30 Apr 2013 11:38:37 -0400

Patrick,

Use the -gap- option as in the otherwise meaningless example below.

. sysuse auto
. graph pie mpg trunk, plabel(_all percent, gap(25))
. graph pie mpg trunk, plabel(1 "25-34: 61%", gap(25)) plabel(2
"35-44: 39%", gap(25)) legend(off)

Friedrich

On Mon, Apr 29, 2013 at 7:11 PM, Patrick J. Flaherty <repho@pipeline.com> wrote:
> Thanks for the tip.  I have not yet used the Graph Recorder but this might
> be a reason to learn.
>
> Patrick J. Flaherty
> Coventry, Connecticut
> -----Original Message----- From: Nick Cox
> Sent: Monday, April 29, 2013 6:55 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: Labels and pie charts
>
> You can drag labels outside the pie with the Graph Editor. Hard to do
> this tidily. It might be possible to use the Graph Recorder to work
> out consistent code.
> Nick
> njcoxstata@gmail.com
>
>
> On 29 April 2013 23:47, Nick Cox <njcoxstata@gmail.com> wrote:
>>
>> Never thought about this, but a glance at the help is not encouraging.
>>
>> Stata's commands for bar charts are much more flexible....
>> Nick
>> njcoxstata@gmail.com
>>
>>
>> On 29 April 2013 23:36, Patrick J. Flaherty <repho@pipeline.com> wrote:
>>>
>>> I have gone through the manual and A Visual Guide to Stata Graphics and I
>>> don't see any pie charts with the labels along the outside of the circle
>>> (see example in link).
>>>
>>> Is this possible in Stata?
>>>
>>> https://dl.dropboxusercontent.com/u/19465855/all_industries_agej.jpg
>>>
>>> Patrick J. Flaherty
>>> Coventry, Connecticut
*
*   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