Skip to content

Commit 82dfe82

Browse files
RC: CRAN 0.12.0 (#413)
1 parent a8706f3 commit 82dfe82

156 files changed

Lines changed: 12177 additions & 12013 deletions

File tree

Some content is hidden

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

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@
3232
^air.toml
3333
^[.]?air[.]toml$
3434
^\.vscode$
35+
^.claude

.claude/settings.local.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(Rscript:*)",
5+
"Bash(R CMD check:*)"
6+
],
7+
"deny": [],
8+
"ask": []
9+
}
10+
}

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: see
33
Title: Model Visualisation Toolbox for 'easystats' and 'ggplot2'
4-
Version: 0.11.0.8
4+
Version: 0.12.0
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",
@@ -70,7 +70,7 @@ Imports:
7070
correlation (>= 0.8.8),
7171
datawizard (>= 1.2.0),
7272
effectsize (>= 1.0.1),
73-
ggplot2 (>= 3.5.2),
73+
ggplot2 (>= 4.0.0),
7474
insight (>= 1.4.1),
7575
modelbased (>= 0.13.0),
7676
patchwork (>= 1.3.2),
@@ -122,7 +122,7 @@ Suggests:
122122
Encoding: UTF-8
123123
Language: en-US
124124
Roxygen: list(markdown = TRUE)
125-
RoxygenNote: 7.3.2
125+
RoxygenNote: 7.3.3
126126
Config/testthat/edition: 3
127127
Config/testthat/parallel: true
128128
Config/Needs/website: easystats/easystatstemplate

NEWS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# see (development version)
1+
# see 0.12.0
22

33
## Major Changes
44

@@ -16,6 +16,13 @@
1616
* Minor re-labelling of axis titles and subtitles in `plot()` for
1717
`performance::check_residuals()`.
1818

19+
* Updates the package to adapt to the changes in the latest `{ggplot2}`
20+
release.
21+
22+
* Themes get an `axis.text.space` argument, to define the spacing between axis
23+
lines and axis labels. Due to changes in `{ggplot2}`, the default spacing was
24+
slightly changed, now it can be set to the desired value using this argument.
25+
1926
# see 0.11.0
2027

2128
## Changes

R/geom_binomdensity.R

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
#' ggplot() +
3434
#' geom_binomdensity(data, x = "Sepal.Length", y = "Species", scale = "proportion")
3535
#' ggplot() +
36-
#' geom_binomdensity(data,
36+
#' geom_binomdensity(
37+
#' data,
3738
#' x = "Sepal.Length", y = "Species",
3839
#' scale = list("setosa" = 0.4, "versicolor" = 0.6)
3940
#' )
@@ -63,14 +64,13 @@ geom_binomdensity <- function(data, x, y, scale = "auto", ...) {
6364

6465
# ggdist geom
6566
ggdist::geom_dots(
66-
# TODO: use tidy evaluation with `ggplot2::aes()` instead
67-
suppressWarnings(ggplot2::aes_string(
68-
x = x,
69-
y = y,
70-
side = ".side",
71-
justification = ".justification",
72-
scale = ".scale"
73-
)),
67+
ggplot2::aes(
68+
x = .data[[x]],
69+
y = .data[[y]],
70+
side = .data$.side,
71+
justification = .data$.justification,
72+
scale = .data$.scale
73+
),
7474
data = data,
7575
na.rm = TRUE,
7676
...

R/geom_from_list.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
#' l2 <- list(
4646
#' geom = "boxplot",
4747
#' data = iris,
48-
#' aes = list(x = "Species", y = "Sepal.Width"),
49-
#' outlier.shape = NA
48+
#' aes = list(x = "Species", y = "Sepal.Width")
5049
#' )
5150
#' l3 <- list(
5251
#' geom = "jitter",
@@ -79,10 +78,9 @@
7978
#' ggplot() +
8079
#' geom_from_list(list(
8180
#' geom = "density_2d_raster", data = iris,
82-
#' aes = list(x = "Sepal.Width", y = "Petal.Length")
83-
#' )) +
84-
#' scale_x_continuous(expand = c(0, 0)) +
85-
#' scale_y_continuous(expand = c(0, 0))
81+
#' aes = list(x = "Sepal.Width", y = "Petal.Length"),
82+
#' contour = FALSE
83+
#' ))
8684
#'
8785
#' # Example 4 (facet and coord flip) --------------------------
8886
#'

R/plot.effectsize_table.R

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ plot.see_effectsize_table <- function(x, ...) {
2626
x$.es <- x[, es_name]
2727

2828
if (all(c("CI_low", "CI_high") %in% colnames(x))) {
29-
CIs <- geom_errorbarh(
29+
CIs <- geom_errorbar(
3030
aes(xmin = .data$CI_low, xmax = .data$CI_high),
31-
height = 0
31+
orientation = "y",
32+
width = 0
3233
)
3334
} else {
3435
NULL
@@ -75,7 +76,11 @@ plot.see_equivalence_test_effectsize <- function(x, ...) {
7576
x$.es <- x[, es_name]
7677

7778
ggplot(x, aes(y = .data$Parameter, color = .data$ROPE_Equivalence)) +
78-
geom_errorbarh(aes(xmin = .data$CI_low, xmax = .data$CI_high), height = 0) +
79+
geom_errorbar(
80+
aes(xmin = .data$CI_low, xmax = .data$CI_high),
81+
orientation = "y",
82+
width = 0
83+
) +
7984
geom_point(aes(x = .data$.es), size = 2) +
8085
geom_vline(xintercept = 0) +
8186
geom_vline(xintercept = unique(attr(x, "rope")), linetype = "dashed") +

R/plot.estimate_density.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,14 @@ plot.see_estimate_density <- function(
209209
my_summary$y <- NA
210210

211211
p <- p +
212-
geom_errorbarh(
212+
geom_errorbar(
213213
data = my_summary,
214214
mapping = aes(
215215
xmin = .data$CI_low,
216216
xmax = .data$CI_high,
217217
color = "Posterior"
218218
),
219+
orientation = "y",
219220
linewidth = linewidth
220221
) +
221222
geom_point(

R/plot.parameters_brms_meta.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,14 @@ plot.see_parameters_brms_meta <- function(
203203
scale = 1,
204204
alpha = alpha_posteriors
205205
) +
206-
ggplot2::geom_errorbarh(
206+
ggplot2::geom_errorbar(
207207
data = datasummary,
208208
mapping = ggplot2::aes(
209209
xmin = .data$CI_low,
210210
xmax = .data$CI_high,
211211
color = .data$Color
212212
),
213+
orientation = "y",
213214
linewidth = linewidth
214215
) +
215216
ggplot2::geom_point(

R/plot.parameters_model.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,9 @@ plot.see_parameters_model <- function(
854854
theme_modern(legend.position = "none") +
855855
color_scale +
856856
fill_scale +
857-
ggplot2::geom_errorbarh(
858-
height = 0,
857+
ggplot2::geom_errorbar(
858+
orientation = "y",
859+
width = 0,
859860
linewidth = size_point
860861
) +
861862
ggplot2::geom_point(

0 commit comments

Comments
 (0)