Skip to content

Commit 56b06fb

Browse files
committed
v1.5
1 parent 963d324 commit 56b06fb

27 files changed

+152
-110
lines changed

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ authors:
33
- family-names: "Naqvi"
44
given-names: "Asjad"
55
title: "Stata package ``circlebar''"
6-
version: 1.4
7-
date-released: 2024-01-22
6+
version: 1.5
7+
date-released: 2024-04-28
88
url: "https://github.com/asjadnaqvi/stata-circlebar"

README.md

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
![circlebar-1](https://github.com/asjadnaqvi/stata-circlebar/assets/38498046/1c9420e0-d824-4918-b3c3-28a3bc83abf3)
3-
41
![StataMin](https://img.shields.io/badge/stata-2015-blue) ![issues](https://img.shields.io/github/issues/asjadnaqvi/stata-circlebar) ![license](https://img.shields.io/github/license/asjadnaqvi/stata-circlebar) ![Stars](https://img.shields.io/github/stars/asjadnaqvi/stata-circlebar) ![version](https://img.shields.io/github/v/release/asjadnaqvi/stata-circlebar) ![release](https://img.shields.io/github/release-date/asjadnaqvi/stata-circlebar)
52

63
---
@@ -9,8 +6,13 @@
96

107
---
118

12-
# circlebar v1.4
13-
(03 Feb 2024) - work in progress
9+
![circlebar-1](https://github.com/asjadnaqvi/stata-circlebar/assets/38498046/1c9420e0-d824-4918-b3c3-28a3bc83abf3)
10+
11+
12+
13+
14+
# circlebar/polarbar v1.5
15+
(28 Apr 2024)
1416

1517
A package for polar bar graphs in Stata.
1618

@@ -25,7 +27,7 @@ SSC (**v1.31**):
2527
ssc install circlebar, replace
2628
```
2729

28-
GitHub (**v1.4**):
30+
GitHub (**v1.5**):
2931

3032
```
3133
net install circlebar, from("https://raw.githubusercontent.com/asjadnaqvi/stata-circlebar/main/installation/") replace
@@ -65,8 +67,7 @@ circlebar var [if] [in], by(var1) [ stack(var2) ]
6567
nocircles circtop range(num) nocirclabels circlabformat(str) circlabsize(str) circlabcolor(str)
6668
labcolor(str) rotate(num) lcolor(str) lwidth(str) circcolor(str) circwidth(str)
6769
labgap(num) labsize(str) cfill(str) clcolor(str) clwidth(str) points(num)
68-
nolegend rows(num) legsize(str) legposition(str)
69-
title(str) subtitle(str) note(str) name(str) saving(str) graphregion(str)
70+
nolegend legsize(str) legposition(str) rows(num) half sort *
7071
]
7172
```
7273

@@ -231,15 +232,43 @@ circlebar y_TOT if NUTS0=="IT", radmin(0) gap(0) by(NUTS1) stack(NUTS2)
231232

232233

233234

235+
### half circles (v1.5)
236+
237+
The command now produces semi circle bar graphs. Note that the `aspect()` option might be needed to adjust the dimensions. Default for `half` is `aspect(0.5)`.
238+
239+
```
240+
circlebar y_TOT if NUTS0=="IT", by(NUTS1) stack(NUTS2) half aspect(0.35)
241+
```
242+
243+
<img src="/figures/circlebar14.png" width="100%">
244+
245+
246+
### sorted bars (v1.5)
247+
248+
```
249+
circlebar y_TOT if NUTS0=="DE", by(NUTS1) sort
250+
```
251+
252+
<img src="/figures/circlebar15.png" width="100%">
253+
254+
234255
## Feedback
235256

236257
Please open an [issue](https://github.com/asjadnaqvi/stata-circlebar/issues) to report errors, feature enhancements, and/or other requests.
237258

238259

239260
## Change log
240261

241-
**v1.4 (03 Feb 2024)**
262+
**v1.5 (28 Apr 2024)**
263+
- Added `half` option.
264+
- Added `sort` option.
265+
- Better passthru options.
266+
- Several bug fixes and redundant code taken out.
267+
268+
**v1.4 (03 Feb 2024)**
242269
- Better legend options.
270+
- Restructuring of base code for later updates.
271+
- Code cleanups
243272

244273
**v1.31 (02 Feb 2024) HOTFIX!**
245274
- Fixed the label bug which was off by one slice.

figures/circlebar1.png

-966 Bytes
Loading

figures/circlebar10.png

-153 Bytes
Loading

figures/circlebar11.png

156 Bytes
Loading

figures/circlebar12.png

768 Bytes
Loading

figures/circlebar13.png

29 Bytes
Loading

figures/circlebar14.png

160 KB
Loading

figures/circlebar15.png

303 KB
Loading

figures/circlebar1_1.png

-1.1 KB
Loading

0 commit comments

Comments
 (0)