Skip to content

Commit

Permalink
v1.33
Browse files Browse the repository at this point in the history
  • Loading branch information
asjadnaqvi committed Jul 2, 2024
1 parent d3de344 commit e991080
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 24 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ authors:
- family-names: "Naqvi"
given-names: "Asjad"
title: "Stata package ``spider''"
version: 1.32
date-released: 2024-05-11
version: 1.33
date-released: 2024-07-02
url: "https://github.com/asjadnaqvi/stata-spider"
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@



# spider v1.32
(11 Jun 2024)
# spider v1.33
(02 Jul 2024)

This package provides the ability to draw spiders Stata. It is based on the [Spider plots](https://medium.com/the-stata-guide/stata-graphs-spider-plots-613808b51f73) guide on Medium

Expand All @@ -24,7 +24,7 @@ The SSC version (**v1.31**):
ssc install spider, replace
```

Or it can be installed from GitHub (**v1.32**):
Or it can be installed from GitHub (**v1.33**):

```
net install spider, from("https://raw.githubusercontent.com/asjadnaqvi/stata-spider/main/installation/") replace
Expand Down Expand Up @@ -90,15 +90,15 @@ Software packages take countless hours of programming, testing, and bug fixing.
author = {Naqvi, Asjad},
title = {Stata package ``spider''},
url = {https://github.com/asjadnaqvi/stata-spider},
version = {1.32},
date = {2024-06-11}
version = {1.33},
date = {2024-07-02}
}
```

*or simple text*

```
Naqvi, A. (2024). Stata package "spider" version 1.32. Release date 11 June 2024. https://github.com/asjadnaqvi/stata-spider.
Naqvi, A. (2024). Stata package "spider" version 1.33. Release date 02 July 2024. https://github.com/asjadnaqvi/stata-spider.
```


Expand Down Expand Up @@ -293,6 +293,9 @@ Please open an [issue](https://github.com/asjadnaqvi/stata-spider/issues) to rep

## Change log

**v1.33 (02 Jul 2024)**
- Fixed a minor error where numeric `over()` and `by()` were not being labeled correctly.

**v1.32 (11 Jun 2024)**
- Added `wrap()` to wrap labels.

Expand Down
18 changes: 14 additions & 4 deletions installation/spider.ado
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*! spider v1.32 (11 Jun 2024)
*! spider v1.33 (02 Jul 2024)
*! Asjad Naqvi (asjadnaqvi@gmail.com)


* v1.33 (02 Jul 2024): passthru bugs
* v1.32 (11 Jun 2024): add wrap() for label wraps
* v1.31 (11 May 2024): changed raformat() to format(). Format default improved. by() and over() error checks added. passthru changed to *.
* v1.3 (16 Feb 2024): rewrite to suport long form, add rotate label, better legend controls.
Expand Down Expand Up @@ -51,7 +51,7 @@ version 15
marksample touse, strok


qui {
quietly {
preserve
keep if `touse'
keep `varlist' `by' `over'
Expand All @@ -69,13 +69,17 @@ preserve
encode `by', gen(_by)
local by _by
}
else {
else { // if numeric with value label
egen _by = group(`by')
if "`: value label `by''" != "" {
tempvar tempov
decode `by', gen(`tempov')
labmask _by , val(`tempov')
}
else { // if numeric with value label
labmask _by, val(`by')
}

local by _by
}

Expand Down Expand Up @@ -108,10 +112,16 @@ preserve
decode `over', gen(`tempov')
labmask _over, val(`tempov')
}
else { // if numeric with value label
labmask _over, val(`over')
}

local over _over
}
}



collapse (mean) `varlist', by(`by' `over')

sum `varlist', meanonly
Expand Down
6 changes: 3 additions & 3 deletions installation/spider.pkg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
v 1.32
v 1.33
d {bf:SPIDER}: A Stata package for spider plots.
d See {bf:help spider} after installation.
d
Expand All @@ -9,9 +9,9 @@ d KW: graphs
d KW: spider plot
d
d
d Distribution-Date: 20240611
d Distribution-Date: 20240702
d
d This version: 11 Jun 2024
d This version: 02 Jul 2024
d First version: 13 Oct 2022
d License: MIT
d
Expand Down
14 changes: 7 additions & 7 deletions installation/spider.sthlp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{smcl}
{* 11Jun2024}{...}
{* 02Jul2024}{...}
{hi:help spider}{...}
{right:{browse "https://github.com/asjadnaqvi/stata-spider":spider v1.32 (GitHub)}}
{right:{browse "https://github.com/asjadnaqvi/stata-spider":spider v1.33 (GitHub)}}

{hline}

Expand Down Expand Up @@ -133,8 +133,8 @@ See {browse "https://github.com/asjadnaqvi/stata-spider":GitHub} for examples.

{title:Package details}

Version : {bf:spider} v1.32
This release : 11 Jun 2024
Version : {bf:spider} v1.33
This release : 02 Jul 2024
First release: 13 Oct 2022
Repository : {browse "https://github.com/asjadnaqvi/stata-spider":GitHub}
Keywords : Stata, graph, spider plot
Expand Down Expand Up @@ -166,14 +166,14 @@ Please submit bugs, errors, feature requests on {browse "https://github.com/asja

Suggested citation guidlines for this package:

Naqvi, A. (2024). Stata package "spider" version 1.32. Release date 11 June 2024. https://github.com/asjadnaqvi/stata-spider.
Naqvi, A. (2024). Stata package "spider" version 1.33. Release date 02 July 2024. https://github.com/asjadnaqvi/stata-spider.

@software{spider,
author = {Naqvi, Asjad},
title = {Stata package ``spider''},
url = {https://github.com/asjadnaqvi/stata-spider},
version = {1.32},
date = {2024-06-11}
version = {1.33},
date = {2024-07-02}
}


Expand Down
4 changes: 2 additions & 2 deletions installation/stata.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
v 1.32
v 1.33
d 'SPIDER': A Stata package for spider plots
d
d Distribution-Date: 20241011
d Distribution-Date: 20240702
d
d Asjad Naqvi
d asjadnaqvi@gmail.com
Expand Down

0 comments on commit e991080

Please sign in to comment.