Skip to content

Commit 5f6b2cb

Browse files
Follow-up on CI for dot plot (#998)
* Follow-up on CI for dot plot * fix lints * use devel easystats * add bayestestR to suggests * use devel statsExpressions
1 parent b3b291b commit 5f6b2cb

File tree

57 files changed

+903
-916
lines changed

Some content is hidden

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

57 files changed

+903
-916
lines changed

DESCRIPTION

+6-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Imports:
4040
ggside (>= 0.3.1),
4141
ggsignif (>= 0.6.4),
4242
glue (>= 1.8.0),
43-
insight (>= 1.1.0),
43+
insight (>= 1.2.0),
4444
paletteer (>= 1.6.0),
4545
parameters (>= 0.24.2),
4646
patchwork (>= 1.3.0),
@@ -52,6 +52,7 @@ Imports:
5252
utils
5353
Suggests:
5454
afex,
55+
bayestestR,
5556
BayesFactor (>= 0.9.12-4.7),
5657
gapminder,
5758
knitr,
@@ -70,6 +71,10 @@ Suggests:
7071
vdiffr (>= 1.0.8),
7172
withr,
7273
WRS2
74+
Remotes:
75+
easystats/bayestestR,
76+
easystats/datawizard,
77+
IndrajeetPatil/statsExpressions
7378
VignetteBuilder:
7479
knitr
7580
Encoding: UTF-8

R/ggbarstats.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ ggbarstats <- function(
218218
#' x = color,
219219
#' y = clarity,
220220
#' grouping.var = cut,
221-
#' plotgrid.args = list(nrow = 2)
221+
#' plotgrid.args = list(nrow = 2L)
222222
#' )
223223
#' @export
224224
grouped_ggbarstats <- function(

R/ggdotplotstats.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ ggdotplotstats <- function(
125125

126126
plot_dot <- ggplot(data, mapping = aes({{ x }}, y = rank)) +
127127
exec(geom_point, !!!point.args) +
128-
exec(geom_errorbarh, mapping = aes(xmin = conf.low, xmax = conf.high), !!!errorbar.args) +
129128
scale_y_continuous(
130129
name = ylab,
131130
labels = pull(data, {{ y }}),
@@ -137,6 +136,10 @@ ggdotplotstats <- function(
137136
)
138137
)
139138

139+
if (conf.int) {
140+
plot_dot <- plot_dot + exec(geom_errorbarh, mapping = aes(xmin = conf.low, xmax = conf.high), !!!errorbar.args)
141+
}
142+
140143
# centrality plotting -------------------------------------
141144

142145
if (isTRUE(centrality.plotting)) {

README.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ grouped_ggdotplotstats(
387387
data = dplyr::filter(ggplot2::mpg, cyl %in% c("4", "6")),
388388
x = cty,
389389
y = manufacturer,
390-
type = "np",
390+
type = "bayes",
391391
xlab = "city miles per gallon",
392392
ylab = "car manufacturer",
393393
grouping.var = cyl,

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ grouped_ggdotplotstats(
370370
data = dplyr::filter(ggplot2::mpg, cyl %in% c("4", "6")),
371371
x = cty,
372372
y = manufacturer,
373-
type = "np",
373+
type = "bayes",
374374
xlab = "city miles per gallon",
375375
ylab = "car manufacturer",
376376
grouping.var = cyl,

codemeta.json

+16-4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@
7070
},
7171
"sameAs": "https://CRAN.R-project.org/package=afex"
7272
},
73+
{
74+
"@type": "SoftwareApplication",
75+
"identifier": "bayestestR",
76+
"name": "bayestestR",
77+
"provider": {
78+
"@id": "https://cran.r-project.org",
79+
"@type": "Organization",
80+
"name": "Comprehensive R Archive Network (CRAN)",
81+
"url": "https://cran.r-project.org"
82+
},
83+
"sameAs": "https://github.com/easystats/bayestestR"
84+
},
7385
{
7486
"@type": "SoftwareApplication",
7587
"identifier": "BayesFactor",
@@ -315,7 +327,7 @@
315327
"name": "Comprehensive R Archive Network (CRAN)",
316328
"url": "https://cran.r-project.org"
317329
},
318-
"sameAs": "https://CRAN.R-project.org/package=datawizard"
330+
"sameAs": "https://github.com/easystats/datawizard"
319331
},
320332
"4": {
321333
"@type": "SoftwareApplication",
@@ -412,7 +424,7 @@
412424
"@type": "SoftwareApplication",
413425
"identifier": "insight",
414426
"name": "insight",
415-
"version": ">= 1.1.0",
427+
"version": ">= 1.2.0",
416428
"provider": {
417429
"@id": "https://cran.r-project.org",
418430
"@type": "Organization",
@@ -510,7 +522,7 @@
510522
"name": "Comprehensive R Archive Network (CRAN)",
511523
"url": "https://cran.r-project.org"
512524
},
513-
"sameAs": "https://CRAN.R-project.org/package=statsExpressions"
525+
"sameAs": "https://github.com/IndrajeetPatil/statsExpressions"
514526
},
515527
"19": {
516528
"@type": "SoftwareApplication",
@@ -532,7 +544,7 @@
532544
},
533545
"SystemRequirements": null
534546
},
535-
"fileSize": "9301.794KB",
547+
"fileSize": "10342.743KB",
536548
"citation": [
537549
{
538550
"@type": "ScholarlyArticle",
7.65 KB
Loading

man/grouped_ggbarstats.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

old/combine_plots.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ plots <- plyr::dlply(
198198
combine_plots(
199199
plotlist = plots,
200200
annotation.args = list(title = "Relationship between GDP (per capita) and life expectancy"),
201-
plotgrid.args = list(nrow = 2)
201+
plotgrid.args = list(nrow = 2L)
202202
)
203203
```
204204

old/ggcoefstats_old.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ combine_plots(
170170
y = "fixed effects"
171171
)
172172
),
173-
plotgrid.args = list(nrow = 2),
173+
plotgrid.args = list(nrow = 2L),
174174
annotation.args = list(title = "Relationship between movie budget and its IMDB rating")
175175
)
176176
```
@@ -3184,7 +3184,7 @@ combine_plots(
31843184
),
31853185
# arguments relevant for `combine_plots` function
31863186
annotation.args = list(title = "Robust variants of `lmRob` and `glmRob` \n(from`robust` package)"),
3187-
plotgrid.args = list(nrow = 2)
3187+
plotgrid.args = list(nrow = 2L)
31883188
)
31893189
```
31903190

@@ -3226,7 +3226,7 @@ combine_plots(
32263226
),
32273227
# arguments relevant for `combine_plots`
32283228
annotation.args = list(title = "Robust variants of `lmRob` and `glmRob` \n(from`robustbase` package)"),
3229-
plotgrid.args = list(nrow = 2)
3229+
plotgrid.args = list(nrow = 2L)
32303230
)
32313231
```
32323232

old/purrr_examples.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ combine_plots(
388388
title = "Relationship between diamond attributes and price across cut",
389389
caption = "Dataset: Diamonds from ggplot2 package"
390390
),
391-
plotgrid.args = list(nrow = 2)
391+
plotgrid.args = list(nrow = 2L)
392392
)
393393
```
394394

0 commit comments

Comments
 (0)