help radscatter (v1.0): 19 Nov 2025graphfunctions (GitHub)

(back to help graphfunctions)

radscatter

: A program for scatter points in polar coordinates.

Syntax

radscatter [ numvar ] [if] [in], [ start(angle) end(angle) center rotate(angle) radius(num) flip
displace(num) genx(str) geny(str) genangle(var) genheight(var) replace ]

If a numerical variable is specified after radscatter, then scatter heights will based on the values of the variable normalized by radius().
For fixed heights, simply use radscatter with if or in options.
Note that for n items, the program will generate n-1 points.

radius(num) Radius determines the height of the points.

start(angle) Starting angle. Default is start(0).

end(angle) Ending angle. Default is end(360).

center Center the points on the arc segment. The n-1 points generated for n items
are placed at the beginning of the arc which might not be optimal for some figures, e.g. custom pie charts.

rotate(angle) Rotate the points on the origin.

flip Flip the draw order to clockwise.

displace(num) Displace the scatter points by num pixels. This option is useful for finetuning scatter points for label positions.

genangle(str) Custom name for the _rada variable. The angle variable gives angle values
that can be used to plot labels rotated along the ray from the origin.

genx(str), geny(str) Custom names for the generated coordinates. Defaults are _radx, _rady.

genid(str) Custom name for the _radid variable.

genheight(str) Custom name for the _radh variable.

replace Overwrite the generated variables if they exist.

Examples

More examples on GitHub.

Package details

Version : radscatter v1.0 in graphfunctions
This release : 19 Nov 2025
First release: 19 Nov 2025
Repository : GitHub
Keywords : Stata, graph, radial, scatter, polar
License : MIT

Author : Asjad Naqvi
E-mail : asjadnaqvi@gmail.com
Twitter/X : @AsjadNaqvi

Feedback

Please submit bugs, errors, feature requests on GitHub by opening a new issue.

Citation guidelines

Visit https://ideas.repec.org/c/boc/bocode/s459379.html for the official SSC citation.
Please note that the GitHub version might be newer than the SSC version.

Other packages

arcplot, alluvial, bimap, bumparea, bumpline, circlebar, circlepack, clipgeo, delaunay, graphfunctions, joyplot,
marimekko, polarspike, sankey, schemepack, spider, splinefit, streamplot, sunburst, ternary, treecluster, treemap, trimap, waffle

or visit GitHub.