Skip to content

Commit 88768ac

Browse files
authored
Merge pull request #180 from ACCLAB/dev
Added swarm bars, forest plot function
2 parents 74a9d60 + 2e59d7e commit 88768ac

File tree

83 files changed

+7093
-4543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+7093
-4543
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Is a dataset available for testing out the functionality**
23+
24+
If yes, please leave a Google Drive link
25+
26+
**Additional context**
27+
28+
Add any other context or screenshots about the feature request here.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Is a dataset available for testing out the functionality**
23+
24+
If yes, please leave a Google Drive link
25+
26+
**Additional context**
27+
28+
Add any other context or screenshots about the feature request here.

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616
R_KEEP_PKG_SOURCE: yes
17+
CI: true
1718
steps:
1819
- uses: actions/checkout@v3
1920

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Please note that dabestr is released with a [Contributor Code of Conduct](CODE_O
1212

1313
Ensure the bug was not already reported by searching in [Issues](https://github.com/ACCLAB/dabestr/issues). Be sure to also check that the bug hasn't been addressed in a closed issue.
1414

15-
If the bug isn't being addressed, open a new one.
15+
If the bug isn't being addressed, open a new issue using the Bug report template.
1616

17-
Be sure to include a title and clear description, and a [minimally reproducible code sample](http://adv-r.had.co.nz/Reproducibility.html) demonstrating the expected behavior that is not occurring.
17+
Be sure to fill in the necessary information, and a [minimally reproducible code sample](http://adv-r.had.co.nz/Reproducibility.html) demonstrating the expected behavior that is not occurring.
1818

1919
## Feature Requests
2020

21-
You may suggest by opening an issue and adding an Enhancement tag.
21+
You may suggest by opening an issue using the Feature request template.
2222

2323
## Pull requests
2424

DESCRIPTION

Lines changed: 66 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,77 @@
1-
Package: dabestr
21
Type: Package
2+
Package: dabestr
33
Title: Data Analysis using Bootstrap-Coupled Estimation
4-
Version: 2023.9.12
4+
Version: 2025.3.14
55
Authors@R: c(
6-
person("Joses W.", "Ho", email = "joseshowh@gmail.com", role = "aut",
7-
comment = c(ORCID = "0000-0002-9186-6322")),
8-
person("Kah Seng", "Lian", email = "kahseng@u.nus.edu", role = c("aut")),
9-
person("Zhuoyu", "Wang", email = "wzhuoyu21@u.nus,edu", role = "aut"),
10-
person("Jun Yang", "Liao", email = "name@example.com", role = "aut"),
11-
person("Felicia", "Low", role = "aut", email = "lowminhuifelicia@gmail.com"),
12-
person("Tayfun", "Tumkaya", role = "aut",
13-
comment = c(ORCID = "0000-0001-8425-3360")),
14-
person("Yishan", "Mai", email = "maiyishan@u.duke.nus.edu", role = c("cre", "ctb"),
15-
comment = c(ORCID = "0000-0002-7199-380X")),
16-
person("Sangyu", "Xu", role = "ctb",
17-
comment = c(ORCID = "0000-0002-4927-9204")),
18-
person("Hyungwon", "Choi", role = "ctb",
19-
comment = c(ORCID = "0000-0002-6687-3088")),
20-
person("Adam", "Claridge-Chang", role = "ctb",
21-
comment = c(ORCID = "0000-0002-4583-3650")),
22-
person("ACCLAB", role = c("cph", "fnd")))
23-
Description: Data Analysis using Bootstrap-Coupled ESTimation.
24-
Estimation statistics is a simple framework that avoids the pitfalls of
25-
significance testing. It uses familiar statistical concepts: means,
26-
mean differences, and error bars. More importantly, it focuses on the
27-
effect size of one's experiment/intervention, as opposed to a false
28-
dichotomy engendered by P values.
29-
An estimation plot has two key features:
30-
1. It presents all datapoints as a swarmplot, which orders each point to
31-
display the underlying distribution.
32-
2. It presents the effect size as a bootstrap 95% confidence interval on a
33-
separate but aligned axes.
34-
Estimation plots are introduced in Ho et al., Nature Methods 2019, 1548-7105.
35-
<doi:10.1038/s41592-019-0470-3>.
36-
The free-to-view PDF is located at <https://www.nature.com/articles/s41592-019-0470-3.epdf?author_access_token=Euy6APITxsYA3huBKOFBvNRgN0jAjWel9jnR3ZoTv0Pr6zJiJ3AA5aH4989gOJS_dajtNr1Wt17D0fh-t4GFcvqwMYN03qb8C33na_UrCUcGrt-Z0J9aPL6TPSbOxIC-pbHWKUDo2XsUOr3hQmlRew%3D%3D>.
6+
person("Joses W.", "Ho", , "joseshowh@gmail.com", role = "aut",
7+
comment = c(ORCID = "0000-0002-9186-6322")),
8+
person("Kah Seng", "Lian", , "kahseng@u.nus.edu", role = "aut"),
9+
person("Ana Rosa", "Castillo", , "arosacastillo@protonmail.com", role = "aut"),
10+
person("Zhuoyu", "Wang", , "wzhuoyu21@u.nus,edu", role = "aut"),
11+
person("Jun Yang", "Liao", , "name@example.com", role = "aut"),
12+
person("Felicia", "Low", , "lowminhuifelicia@gmail.com", role = "aut"),
13+
person("Tayfun", "Tumkaya", , role = "aut",
14+
comment = c(ORCID = "0000-0001-8425-3360")),
15+
person("Jonathan", "Anns", , role = "ctb",
16+
comment = c(ORCID = "0009-0005-8349-4986")),
17+
person("Yishan", "Mai", ,"maiyishan@u.duke.nus.edu", role = c("cre", "ctb"),
18+
comment = c(ORCID = "0000-0002-7199-380X")),
19+
person("Sangyu", "Xu", , role = "ctb",
20+
comment = c(ORCID = "0000-0002-4927-9204")),
21+
person("Hyungwon", "Choi", , role = "ctb",
22+
comment = c(ORCID = "0000-0002-6687-3088")),
23+
person("Adam", "Claridge-Chang", , role = "ctb",
24+
comment = c(ORCID = "0000-0002-4583-3650")),
25+
person("ACCLAB", , role = c("cph", "fnd"))
26+
)
27+
Description: Data Analysis using Bootstrap-Coupled ESTimation. Estimation
28+
statistics is a simple framework that avoids the pitfalls of
29+
significance testing. It uses familiar statistical concepts: means,
30+
mean differences, and error bars. More importantly, it focuses on the
31+
effect size of one's experiment/intervention, as opposed to a false
32+
dichotomy engendered by P values. An estimation plot has two key
33+
features: 1. It presents all datapoints as a swarmplot, which orders
34+
each point to display the underlying distribution. 2. It presents the
35+
effect size as a bootstrap 95% confidence interval on a separate but
36+
aligned axes. Estimation plots are introduced in Ho et al., Nature
37+
Methods 2019, 1548-7105. <doi:10.1038/s41592-019-0470-3>. The
38+
free-to-view PDF is located at
39+
<https://www.nature.com/articles/s41592-019-0470-3.epdf?author_access_token=Euy6APITxsYA3huBKOFBvNRgN0jAjWel9jnR3ZoTv0Pr6zJiJ3AA5aH4989gOJS_dajtNr1Wt17D0fh-t4GFcvqwMYN03qb8C33na_UrCUcGrt-Z0J9aPL6TPSbOxIC-pbHWKUDo2XsUOr3hQmlRew%3D%3D>.
3740
License: Apache License (>= 2)
38-
Encoding: UTF-8
39-
URL: https://github.com/ACCLAB/dabestr,
40-
https://acclab.github.io/dabestr/
41+
URL: https://github.com/ACCLAB/dabestr, https://acclab.github.io/dabestr/
4142
Depends:
42-
R (>= 2.10)
43+
R (>= 2.10)
4344
Imports:
44-
ggplot2,
45-
cowplot,
46-
tidyr,
47-
dplyr,
48-
tibble,
49-
rlang,
50-
magrittr,
51-
ggbeeswarm,
52-
effsize,
53-
grid,
54-
scales,
55-
ggsci,
56-
cli,
57-
boot,
58-
stats,
59-
stringr,
60-
brunnermunzel,
61-
methods
62-
Roxygen: list(markdown = TRUE)
63-
RoxygenNote: 7.2.3
45+
boot,
46+
brunnermunzel,
47+
cli,
48+
cowplot,
49+
dplyr,
50+
effsize,
51+
ggbeeswarm,
52+
ggplot2 (>= 3.5.1),
53+
ggsci,
54+
grid,
55+
magrittr,
56+
RColorBrewer,
57+
rlang,
58+
scales,
59+
stats,
60+
stringr,
61+
tibble,
62+
tidyr,
63+
viridisLite
6464
Suggests:
65-
testthat (>= 3.0.0),
66-
vdiffr,
65+
kableExtra,
6766
knitr,
6867
rmarkdown,
69-
kableExtra
68+
testthat (>= 3.0.0),
69+
vdiffr
70+
VignetteBuilder:
71+
kableExtra,
72+
knitr
7073
Config/testthat/edition: 3
74+
Encoding: UTF-8
7175
LazyData: true
72-
VignetteBuilder: knitr, kableExtra
76+
Roxygen: list(markdown = TRUE)
77+
RoxygenNote: 7.2.3

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ export(cliffs_delta)
77
export(cohens_d)
88
export(cohens_h)
99
export(dabest_plot)
10+
export(forest_plot)
1011
export(hedges_g)
1112
export(load)
1213
export(mean_diff)
1314
export(median_diff)
1415
importFrom(ggplot2,.pt)
1516
importFrom(magrittr,"%>%")
17+
importFrom(rlang,.data)

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# dabestr v2025.3.14
2+
This release implements quite a couple of new features, matching up with the current DABEST in python.
3+
4+
### New features
5+
* Plots now include swarm bars, contrast bars and delta dots
6+
* Forest plots
7+
18
# dabestr v2023.9.12
29
This release is a complete rebuild of dabestr.
310

0 commit comments

Comments
 (0)