Skip to content

Commit

Permalink
v1.22 bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asjadnaqvi committed Jul 3, 2023
1 parent 200794d commit 876670c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 18 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.21
date-released: 2023-06-10
version: 1.22
date-released: 2023-07-03
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.21
(10 Jun 2023)
# spider v1.22
(03 Jul 2023)

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.21**):
ssc install spider, replace
```

Or it can be installed from GitHub (**v1.21**):
Or it can be installed from GitHub (**v1.22**):

```
net install spider, from("https://raw.githubusercontent.com/asjadnaqvi/stata-spider/main/installation/") replace
Expand Down Expand Up @@ -58,7 +58,7 @@ graph set window fontface "Arial Narrow"

## Syntax

The syntax for v1.21 is as follows:
The syntax for v1.22 is as follows:

```
spider varlist [if] [in], over(cat var)
Expand All @@ -67,8 +67,8 @@ spider varlist [if] [in], over(cat var)
raformat(fmt) ralabsize(str) ralabcolor(str) ralabangle(str)
msize(str) mlwidth(str) displacelab(num) displacespike(num)
ccolor(str) cwidth(str) scolor(str) swidth(str) slabsize(str)
nolegend legpositon(num) legpositon(num) legcolumns(num) legsize(num) xsize(num) ysize(num)
title(str) subtitle(str) note(str) scheme(str) name(str) ]
nolegend legpositon(num) legpositon(num) legcolumns(num) legsize(num)
title(str) subtitle(str) note(str) scheme(str) xsize(num) ysize(num) name(str) ]
```

See the help file `help spider` for details.
Expand Down Expand Up @@ -251,6 +251,9 @@ Please open an [issue](https://github.com/asjadnaqvi/stata-spider/issues) to rep

## Change log

**v1.22 (07 Jul 2023)**
- Fixed a bug where labeled `over()` categories were not passing correctly (reported by Kamala Kaghoma).

**v1.21 (10 Jun 2023)**
- Two options added for range labels: `ralabcolor()`, `ralabangle()`.

Expand Down
15 changes: 11 additions & 4 deletions installation/spider.ado
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*! spider v1.21 (10 June 2023)
*! spider v1.22 (03 Jul 2023)
*! Asjad Naqvi ([email protected])

* v1.22 (03 Jul 2023): Fixed bug with numerical variables not passing correctly.
* v1.21 (10 Jun 2023): Options added: ralabcolor() ralabangle().
* v1.2 (20 May 2023): Major fixes to the legend.
* v1.1 (22 Dec 2022): Minor fixes.
Expand Down Expand Up @@ -69,13 +70,19 @@ preserve
else {
egen over2 = group(`over')

if "`: value label `stack''" != "" {
if "`: value label `over''" != "" {

tempvar tempov
decode `over', gen(`tempov')
labmask over2, val(`tempov')

}
local over over2
}




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

tempvar varmin varmax
Expand Down Expand Up @@ -329,7 +336,7 @@ preserve




*/

restore
}
Expand All @@ -345,7 +352,7 @@ end

cap program drop smoother

program smoother // , sortpreserve
program smoother , sortpreserve

version 15

Expand Down
8 changes: 4 additions & 4 deletions installation/spider.sthlp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{smcl}
{* 10Jun2023}{...}
{* 03Jul2023}{...}
{hi:help spider}{...}
{right:{browse "https://github.com/asjadnaqvi/stata-spider":spider v1.21 (GitHub)}}
{right:{browse "https://github.com/asjadnaqvi/stata-spider":spider v1.22 (GitHub)}}

{hline}

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

{title:Package details}

Version : {bf:spider} v1.21
This release : 10 Jun 2023
Version : {bf:spider} v1.22
This release : 03 Jul 2023
First release: 13 Oct 2022
Repository : {browse "https://github.com/asjadnaqvi/stata-spider":GitHub}
Keywords : Stata, graph, spider plot
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.21
v 1.22
d 'SPIDER': A Stata package for spider plots
d
d Distribution-Date: 20230610
d Distribution-Date: 20230703
d
d Asjad Naqvi
d [email protected]
Expand Down

0 comments on commit 876670c

Please sign in to comment.