Skip to content

Commit

Permalink
v1.6
Browse files Browse the repository at this point in the history
coming full circles update
  • Loading branch information
asjadnaqvi committed Jan 26, 2024
1 parent 4975146 commit 595720c
Show file tree
Hide file tree
Showing 48 changed files with 374 additions and 301 deletions.
50 changes: 44 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

---

# sunburst v1.5
(08 Aug 2023)
# sunburst v1.6
(25 Jan 2024)

## Installation

Expand All @@ -21,7 +21,7 @@ SSC (**v1.4**):
ssc install sunburst, replace
```

GitHub (**v1.5**):
GitHub (**v1.6**):

```
net install sunburst, from("https://raw.githubusercontent.com/asjadnaqvi/stata-sunburst/main/installation/") replace
Expand Down Expand Up @@ -56,12 +56,12 @@ The syntax for the latest version is as follows:

```stata
sunburst numvar [if] [in], by(variables)
[ radius(numlist) step(num) palette(str) colorby(option) colorprop fade(num) share
[ radius(numlist) step(num) palette(str) colorby(option) colorvar(var) colorprop fade(num) share
format(str) threshold(num) labcondition(num) labcolor(str) lwidth(numlist)
labsize(numlist) lablayer(numlist) labprop labscale(num) cfill(str) points(num)
labsize(numlist) lablayer(numlist) labprop labscale(num) points(num)
full cfill(str) clcolor(str) clwidth(str)
title(str) subtitle(str) note(str) scheme(str) name(str) saving(str) aspect(num)
]
```

See the help file `help sunburst` for details.
Expand Down Expand Up @@ -351,13 +351,51 @@ sunburst pop if inlist(NUTS0, "NO", "DK", "NL", "FI"), by(NUTS0 NUTS1 NUTS2 NUTS
<img src="/figures/sunburst26_6.png" height="300">


### v1.6 full option

```
sunburst pop if NUTS0=="AT", by(NUTS1 NUTS2 NUTS3) full labs(1.4 1.4 1.4)
```

<img src="/figures/sunburst27_1.png" height="300">


```
sunburst pop if NUTS0=="FR", by(NUTS1 NUTS2) full labprop
```

<img src="/figures/sunburst27_2.png" height="300">


### v1.6 center circle fill options

```
sunburst pop if NUTS0=="PT", by(NUTS2 NUTS3) clc(black) lc(black)
```

<img src="/figures/sunburst27_1.png" height="300">


```
sunburst pop if NUTS0=="PT", by(NUTS2 NUTS3) full clc(black) lc(black)
```

<img src="/figures/sunburst27_2.png" height="300">


## Feedback

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


## Change log

**v1.6 (26 Jan 2024)**
- Rewrite of core routines.
- Added `full` option to generate a full circle.
- Added `clcolor()` and `clwidth()` options to better control central circle fill.
- Minor code cleanups.

**v1.5 (23 Aug 2023)**
- Implements the `colorvar(var)` option to allow full control of assigning the colors (requested by Richard Mills).
- Major code cleanups.
Expand Down
Binary file modified figures/sunburst1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst15_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst25_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst25_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst25_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst25_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst26_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst26_1_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst26_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sunburst26_3.png
Binary file modified figures/sunburst26_3_1.png
Binary file modified figures/sunburst26_4.png
Binary file modified figures/sunburst26_5.png
Binary file modified figures/sunburst26_5_1.png
Binary file modified figures/sunburst26_6.png
Binary file added figures/sunburst27_1.png
Binary file added figures/sunburst27_2.png
Binary file added figures/sunburst28_1.png
Binary file added figures/sunburst28_2.png
Binary file modified figures/sunburst3.png
Binary file modified figures/sunburst4.png
Binary file modified figures/sunburst5.png
Binary file modified figures/sunburst6.png
Binary file modified figures/sunburst7.png
Binary file modified figures/sunburst8.png
Binary file modified figures/sunburst9.png
Binary file added figures/sunburst_banner.png
2 changes: 1 addition & 1 deletion installation/stata.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
v 1.5
v 1.6
d 'SUNBURST': A Stata package for half sunburst plots
d Asjad Naqvi
d asjadnaqvi@gmail.com
Expand Down
Loading

0 comments on commit 595720c

Please sign in to comment.