Skip to content

Commit

Permalink
CRAN 0.9.5
Browse files Browse the repository at this point in the history
* Get ready for CRAN

* Use tidy_model_parameters in ggcoefstats; clean up reexports

* Fix build failures

* Update ggcoefstats.Rmd

* Fix tests

* fix?

* Update test-ggcoefstats.R

* submission

* resubmission
  • Loading branch information
IndrajeetPatil authored Oct 16, 2022
1 parent a9dca7c commit 1efe3c6
Show file tree
Hide file tree
Showing 62 changed files with 791 additions and 667 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.19.2'

- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -48,7 +50,10 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: r-lib/lintr
needs: lint

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.18'
pandoc-version: '2.19.2'

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: r-lib/pkgdown, local::.
needs: website

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/render-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ jobs:
fetch-depth: 0

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.19.2'

- uses: r-lib/actions/setup-r@v2

- uses: r-lib/actions/setup-renv@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: |
deps::.
any::ggstatsplot
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: r-lib/covr
needs: coverage

Expand Down
18 changes: 1 addition & 17 deletions API
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ combine_plots(plotlist, plotgrid.args = list(), annotation.args = list(), guides
extract_stats(p, ...)
ggbarstats(data, x, y, counts = NULL, type = "parametric", paired = FALSE, results.subtitle = TRUE, label = "percentage", label.args = list(alpha = 1, fill = "white"), k = 2L, proportion.test = results.subtitle, perc.k = 0L, bf.message = TRUE, ratio = NULL, conf.level = 0.95, sampling.plan = "indepMulti", fixed.margin = "rows", prior.concentration = 1, title = NULL, subtitle = NULL, caption = NULL, legend.title = NULL, xlab = NULL, ylab = NULL, ggtheme = ggstatsplot::theme_ggstatsplot(), package = "RColorBrewer", palette = "Dark2", ggplot.component = NULL, output = "plot", ...)
ggbetweenstats(data, x, y, plot.type = "boxviolin", type = "parametric", pairwise.comparisons = TRUE, pairwise.display = "significant", p.adjust.method = "holm", effsize.type = "unbiased", bf.prior = 0.707, bf.message = TRUE, results.subtitle = TRUE, xlab = NULL, ylab = NULL, caption = NULL, title = NULL, subtitle = NULL, k = 2L, var.equal = FALSE, conf.level = 0.95, nboot = 100L, tr = 0.2, centrality.plotting = TRUE, centrality.type = type, centrality.point.args = list(size = 5, color = "darkred"), centrality.label.args = list(size = 3, nudge_x = 0.4, segment.linetype = 4, min.segment.length = 0), outlier.tagging = FALSE, outlier.label = NULL, outlier.coef = 1.5, outlier.shape = 19, outlier.color = "black", outlier.label.args = list(size = 3), point.args = list(position = ggplot2::position_jitterdodge(dodge.width = 0.6), alpha = 0.4, size = 3, stroke = 0), violin.args = list(width = 0.5, alpha = 0.2), ggsignif.args = list(textsize = 3, tip_length = 0.01), ggtheme = ggstatsplot::theme_ggstatsplot(), package = "RColorBrewer", palette = "Dark2", ggplot.component = NULL, output = "plot", ...)
ggcoefstats(x, output = "plot", statistic = NULL, conf.int = TRUE, conf.level = 0.95, k = 2L, exclude.intercept = FALSE, effsize = "eta", meta.analytic.effect = FALSE, meta.type = "parametric", bf.message = TRUE, sort = "none", xlab = NULL, ylab = NULL, title = NULL, subtitle = NULL, caption = NULL, only.significant = FALSE, point.args = list(size = 3, color = "blue"), errorbar.args = list(height = 0), vline = TRUE, vline.args = list(size = 1, linetype = "dashed"), stats.labels = TRUE, stats.label.color = NULL, stats.label.args = list(size = 3, direction = "y", min.segment.length = 0), package = "RColorBrewer", palette = "Dark2", ggtheme = ggstatsplot::theme_ggstatsplot(), ...)
ggcoefstats(x, output = "plot", statistic = NULL, conf.int = TRUE, conf.level = 0.95, k = 2L, exclude.intercept = FALSE, effectsize.type = "eta", meta.analytic.effect = FALSE, meta.type = "parametric", bf.message = TRUE, sort = "none", xlab = NULL, ylab = NULL, title = NULL, subtitle = NULL, caption = NULL, only.significant = FALSE, point.args = list(size = 3, color = "blue"), errorbar.args = list(height = 0), vline = TRUE, vline.args = list(size = 1, linetype = "dashed"), stats.labels = TRUE, stats.label.color = NULL, stats.label.args = list(size = 3, direction = "y", min.segment.length = 0), package = "RColorBrewer", palette = "Dark2", ggtheme = ggstatsplot::theme_ggstatsplot(), ...)
ggcorrmat(data, cor.vars = NULL, cor.vars.names = NULL, output = "plot", matrix.type = "upper", type = "parametric", tr = 0.2, partial = FALSE, k = 2L, sig.level = 0.05, conf.level = 0.95, bf.prior = 0.707, p.adjust.method = "holm", pch = "cross", ggcorrplot.args = list(method = "square", outline.color = "black", pch.cex = 14), package = "RColorBrewer", palette = "Dark2", colors = c("#E69F00", "white", "#009E73"), ggtheme = ggstatsplot::theme_ggstatsplot(), ggplot.component = NULL, title = NULL, subtitle = NULL, caption = NULL, ...)
ggdotplotstats(data, x, y, xlab = NULL, ylab = NULL, title = NULL, subtitle = NULL, caption = NULL, type = "parametric", test.value = 0, bf.prior = 0.707, bf.message = TRUE, effsize.type = "g", conf.level = 0.95, tr = 0.2, k = 2L, results.subtitle = TRUE, point.args = list(color = "black", size = 3, shape = 16), centrality.plotting = TRUE, centrality.type = type, centrality.line.args = list(color = "blue", size = 1, linetype = "dashed"), ggplot.component = NULL, ggtheme = ggstatsplot::theme_ggstatsplot(), output = "plot", ...)
gghistostats(data, x, binwidth = NULL, xlab = NULL, title = NULL, subtitle = NULL, caption = NULL, type = "parametric", test.value = 0, bf.prior = 0.707, bf.message = TRUE, effsize.type = "g", conf.level = 0.95, tr = 0.2, k = 2L, ggtheme = ggstatsplot::theme_ggstatsplot(), results.subtitle = TRUE, bin.args = list(color = "black", fill = "grey50", alpha = 0.7), centrality.plotting = TRUE, centrality.type = type, centrality.line.args = list(color = "blue", size = 1, linetype = "dashed"), normal.curve = FALSE, normal.curve.args = list(size = 2), ggplot.component = NULL, output = "plot", ...)
Expand All @@ -22,19 +22,3 @@ grouped_ggpiestats(data, ..., grouping.var, output = "plot", plotgrid.args = lis
grouped_ggscatterstats(data, ..., grouping.var, output = "plot", plotgrid.args = list(), annotation.args = list())
grouped_ggwithinstats(data, ..., grouping.var, output = "plot", plotgrid.args = list(), annotation.args = list())
theme_ggstatsplot()

## Reexported objects

rlang::!!
rlang::!!!
magrittr::%$%
zeallot::%<-%
magrittr::%<>%
magrittr::%>%
rlang::%|%
rlang::%||%
rlang:::=
tibble::as_tibble
rlang::exec
statsExpressions::pairwise_comparisons
tibble::tibble
25 changes: 13 additions & 12 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -----------------------------------------------------------
# CITATION file created with {cffr} R package, v0.2.3
# CITATION file created with {cffr} R package, v0.3.0
# See also: https://docs.ropensci.org/cffr/
# -----------------------------------------------------------

Expand All @@ -8,7 +8,7 @@ message: 'To cite package "ggstatsplot" in publications use:'
type: software
license: GPL-3.0-only
title: 'ggstatsplot: ''ggplot2'' Based Plots with Statistical Details'
version: 0.9.4.9000
version: 0.9.5
doi: 10.21105/joss.03167
abstract: 'Extension of ''ggplot2'', ''ggstatsplot'' creates graphics with details
from statistical tests included in the plots themselves. It provides an easier syntax
Expand All @@ -17,7 +17,7 @@ abstract: 'Extension of ''ggplot2'', ''ggstatsplot'' creates graphics with detai
(pie and bar charts) data. Currently, it supports the most common types of statistical
approaches and tests: parametric, nonparametric, robust, and Bayesian versions of
t-test/ANOVA, correlation analyses, contingency table analysis, meta-analysis, and
regression analyses.'
regression analyses. References: Patil (2021) <10.21105/joss.03236>.'
authors:
- family-names: Patil
given-names: Indrajeet
Expand Down Expand Up @@ -106,9 +106,9 @@ references:
given-names: Mattan S.
email: [email protected]
orcid: https://orcid.org/0000-0002-4287-4801
url: https://easystats.github.io/correlation/
version: '>= 0.8.2'
year: '2022'
url: https://CRAN.R-project.org/package=correlation
version: '>= 0.8.3'
- type: software
title: datawizard
abstract: 'datawizard: Easy Data Wrangling and Statistical Transformations'
Expand Down Expand Up @@ -139,7 +139,7 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0002-9271-5075
url: https://easystats.github.io/datawizard/
version: '>= 0.5.0'
version: '>= 0.6.2'
year: '2022'
- type: software
title: dplyr
Expand Down Expand Up @@ -268,8 +268,8 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0003-2042-7063
year: '2022'
url: https://easystats.github.io/insight/
version: '>= 0.18.2'
url: https://CRAN.R-project.org/package=insight
version: '>= 0.18.5'
- type: software
title: paletteer
abstract: 'paletteer: Comprehensive Collection of Color Palettes'
Expand Down Expand Up @@ -307,9 +307,9 @@ references:
given-names: Brenton M.
email: [email protected]
orcid: https://orcid.org/0000-0001-9560-6336
year: '2022'
url: https://easystats.github.io/parameters/
version: '>= 0.18.2'
version: '>= 0.19.0'
year: '2022'
- type: software
title: patchwork
abstract: 'patchwork: The Composer of Plots'
Expand Down Expand Up @@ -352,7 +352,7 @@ references:
orcid: https://orcid.org/0000-0001-9560-6336
year: '2022'
url: https://easystats.github.io/performance/
version: '>= 0.9.2'
version: '>= 0.10.0'
- type: software
title: purrr
abstract: 'purrr: Functional Programming Tools'
Expand Down Expand Up @@ -400,8 +400,9 @@ references:
given-names: Indrajeet
email: [email protected]
orcid: https://orcid.org/0000-0003-1995-6531
version: '>= 1.3.3'
year: '2022'
url: https://CRAN.R-project.org/package=statsExpressions
version: '>= 1.3.4'
- type: software
title: tidyr
abstract: 'tidyr: Tidy Messy Data'
Expand Down
21 changes: 12 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: ggstatsplot
Title: 'ggplot2' Based Plots with Statistical Details
Version: 0.9.4.9000
Version: 0.9.5
Authors@R:
c(person(given = "Indrajeet",
family = "Patil",
Expand All @@ -23,29 +23,30 @@ Description: Extension of 'ggplot2', 'ggstatsplot' creates graphics with
statistical approaches and tests: parametric, nonparametric, robust,
and Bayesian versions of t-test/ANOVA, correlation analyses,
contingency table analysis, meta-analysis, and regression analyses.
References: Patil (2021) <doi:10.21105/joss.03236>.
License: GPL-3 | file LICENSE
URL: https://indrajeetpatil.github.io/ggstatsplot/,
https://github.com/IndrajeetPatil/ggstatsplot
BugReports: https://github.com/IndrajeetPatil/ggstatsplot/issues
Depends:
R (>= 4.0.0)
Imports:
correlation (>= 0.8.2),
datawizard (>= 0.5.0),
correlation (>= 0.8.3),
datawizard (>= 0.6.2),
dplyr,
ggplot2,
ggrepel,
ggsignif,
glue,
insight (>= 0.18.2),
insight (>= 0.18.5),
paletteer,
parameters (>= 0.18.2),
parameters (>= 0.19.0),
patchwork,
performance (>= 0.9.2),
performance (>= 0.10.0),
purrr,
rlang,
stats,
statsExpressions (>= 1.3.3),
statsExpressions (>= 1.3.4),
tidyr,
utils
Suggests:
Expand Down Expand Up @@ -74,8 +75,10 @@ VignetteBuilder:
Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE, roclets = c("rd", "namespace", "collate",
"pkgapi::api_roclet"))
Roxygen: list(
markdown = TRUE,
roclets = c("rd", "namespace", "collate", "pkgapi::api_roclet")
)
RoxygenNote: 7.2.1
Config/testthat/edition: 3
Config/testthat/parallel: true
21 changes: 0 additions & 21 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
# Generated by roxygen2: do not edit by hand

export("!!!")
export("!!")
export("%$%")
export("%<-%")
export("%<>%")
export("%>%")
export("%|%")
export("%||%")
export(":=")
export(as_tibble)
export(combine_plots)
export(exec)
export(extract_stats)
export(ggbarstats)
export(ggbetweenstats)
Expand All @@ -32,7 +22,6 @@ export(grouped_ggscatterstats)
export(grouped_ggwithinstats)
export(pairwise_comparisons)
export(theme_ggstatsplot)
export(tibble)
import(dplyr)
import(ggplot2)
import(rlang)
Expand All @@ -55,16 +44,6 @@ importFrom(patchwork,wrap_plots)
importFrom(performance,check_outliers)
importFrom(purrr,is_bare_numeric)
importFrom(purrr,keep)
importFrom(rlang,"!!!")
importFrom(rlang,"!!")
importFrom(rlang,"%|%")
importFrom(rlang,"%||%")
importFrom(rlang,":=")
importFrom(rlang,exec)
importFrom(statsExpressions,"%$%")
importFrom(statsExpressions,"%<-%")
importFrom(statsExpressions,"%<>%")
importFrom(statsExpressions,"%>%")
importFrom(statsExpressions,as_tibble)
importFrom(statsExpressions,pairwise_comparisons)
importFrom(statsExpressions,tibble)
15 changes: 14 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
# ggstatsplot 0.9.4
# ggstatsplot 0.9.5

N.B. All statistical analysis in `{ggstatsplot}` is carried out in
`{statsExpressions}`. Thus, to see changes related to statistical expressions,
read the `NEWS` for that package:
<https://indrajeetpatil.github.io/statsExpressions/news/index.html>

MAJOR CHANGES

- Due to changes to the underlying API of `{parameters}`, the `effsize` argument
has been renamed to `effectsize.type`.

- Removes unnecessary re-exports of `{tidyverse}` operators.

MINOR CHANGES

- Fixes tests for changes in dependencies.

# ggstatsplot 0.9.4

- Internal housekeeping to adjust to changes in upstream dependencies.

# ggstatsplot 0.9.3
Expand Down
Loading

0 comments on commit 1efe3c6

Please sign in to comment.