-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shape donut #4
Comments
Dear Eric, For a donut plot, you can already use sunburst. Maybe I should add an example there. For Also I am not a fan of this Stata basecode hacking that you posted above. This type of syntax from the base engine is not supposed to be used. |
@ericmelse here is a basic syntax:
|
Thank you Asjad, for your response and example. |
Dear Asjad,
I am not sure when a
shape
option becomes a (new) plot as such.But, now you have added the
shape
optionpie
that can be set to be 'sliced', like your example usingstart(0) end(270)
, I am driven to ask also for adonut
with the sameshape
options.In my view a donut chart/plot is a more effective unary data visualition tool than a pie chart/plot (there is a ton of literature debating this, should you be interested in that I can provide materials).
More pressing is that it is rather hard to draw a donut chart/plot using Stata.
Andrew Musau provided a working solution for that, published as a Stata Tip in The Stata Journal.
However, for that to work he still uses
graph pie
and next we have to work through a rather voluminous 'hack' using graph editor commands like:which results in:

So, mildly stated, I am happy that Andrew was able to provide a working solution as such for creating a donut chart/plot but I certainly am eager for a more flexible solution for this unary visualization ability using Stata.
Now, I suppose the first step would be to have a
graphfunction
available likeshape donut
not only with the parameters to set the starting and the ending position of donut slices but also for the donut radius (width).Once we have that available, I suggest to employ that in a (new) Stata package
donut
that you could enrich with those very fine options to control about anything you can think of. For example,byable
sets of donuts plotsover
something, ordered in (#) rows or columns, legend controls, etc.I do hope that the above is inspirational.
Best wishes,
Eric
The text was updated successfully, but these errors were encountered: