Skip to content

Commit 1f50306

Browse files
CRAN RC: 0.8.3 (#332)
* CRAN RC: 0.8.3 * update snapshots * suppress stan glm messages * Update WORDLIST * no need to run examples conditional on hard deps * another one * add test for ROC function * slightly increase point size * update snapshots * get rid of warnings about deprecated arg * fix example * fix remaining examples * fix example * another example to fix * fix example * fix example * downgrade ggplot2 version --------- Co-authored-by: Daniel <mail@danielluedecke.de>
1 parent 222c024 commit 1f50306

37 files changed

Lines changed: 143 additions & 84 deletions

DESCRIPTION

Lines changed: 5 additions & 6 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.8.2.7
4+
Version: 0.8.3
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",
@@ -67,11 +67,11 @@ Imports:
6767
correlation (>= 0.8.4),
6868
datawizard (>= 0.9.1),
6969
effectsize (>= 0.8.6),
70-
ggplot2 (>= 3.4.0),
71-
insight (>= 0.19.8),
70+
ggplot2 (>= 3.4.4),
71+
insight (>= 0.19.10),
7272
modelbased (>= 0.8.7),
73-
parameters (>= 0.21.5),
74-
performance (>= 0.10.9)
73+
parameters (>= 0.21.6),
74+
performance (>= 0.11.0)
7575
Suggests:
7676
brms,
7777
curl,
@@ -119,4 +119,3 @@ Config/Needs/website:
119119
r-lib/pkgdown,
120120
easystats/easystatstemplate
121121
Config/rcmdcheck/ignore-inconsequential-notes: true
122-
Remotes: easystats/performance

NEWS.md

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

33
## Major changes
44

R/coord_radar.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
#' @inheritParams ggplot2::coord_polar
66
#' @param ... Other arguments to be passed to `ggproto`.
77
#'
8-
#' @examplesIf require("datawizard") && require("ggplot2")
8+
#' @examples
9+
#' library(ggplot2)
10+
#'
911
#' # Create a radar/spider chart with ggplot:
1012
#' data(iris)
1113
#' data <- aggregate(iris[-5], list(Species = iris$Species), mean)
12-
#' data <- data_to_long(
14+
#' data <- datawizard::data_to_long(
1315
#' data,
1416
#' c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")
1517
#' )

R/data_plot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ data_plot <- function(x, ...) {
103103
#' model <- suppressWarnings(stan_glm(
104104
#' Sepal.Length ~ Petal.Width + Species + Sepal.Width,
105105
#' data = iris,
106-
#' chains = 2, iter = 200
106+
#' chains = 2, iter = 200, refresh = 0
107107
#' ))
108108
#'
109-
#' result <- hdi(model, ci = c(0.5, 0.75, 0.9, 0.95))
109+
#' result <- bayestestR::hdi(model, ci = c(0.5, 0.75, 0.9, 0.95))
110110
#' data <- data_plot(result, data = model)
111111
#'
112112
#' p <- ggplot(

R/plot.check_heteroscedasticity.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#'
1010
#' @seealso See also the vignette about [`check_model()`](https://easystats.github.io/performance/articles/check_model.html).
1111
#'
12-
#' @examplesIf require("performance")
12+
#' @examples
1313
#' m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
14-
#' result <- check_heteroscedasticity(m)
14+
#' result <- performance::check_heteroscedasticity(m)
1515
#' result
1616
#' plot(result, data = m) # data required for pkgdown
1717
#' @export

R/plot.check_homogeneity.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
#'
88
#' @return A ggplot2-object.
99
#'
10-
#' @examplesIf require("performance")
10+
#' @examples
11+
#' library(performance)
12+
#'
1113
#' model <<- lm(len ~ supp + dose, data = ToothGrowth)
1214
#' result <- check_homogeneity(model)
1315
#' result

R/plot.check_model.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#'
1212
#' @seealso See also the vignette about [`check_model()`](https://easystats.github.io/performance/articles/check_model.html).
1313
#'
14-
#' @examplesIf require("performance") && require("patchwork")
14+
#' @examplesIf require("patchwork")
15+
#' library(performance)
16+
#'
1517
#' model <- lm(qsec ~ drat + wt, data = mtcars)
1618
#' plot(check_model(model))
1719
#'
@@ -177,7 +179,6 @@ plot.see_check_model <- function(x,
177179
colors = colors,
178180
detrend = detrend,
179181
style = style
180-
181182
)
182183
} else {
183184
p$QQ <- .plot_diag_qq(

R/plot.check_normality.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,22 @@
2626
#'
2727
#' @seealso See also the vignette about [`check_model()`](https://easystats.github.io/performance/articles/check_model.html).
2828
#'
29-
#' @examplesIf require("performance")
29+
#' @examples
30+
#' library(performance)
31+
#'
3032
#' m <<- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
3133
#' result <- check_normality(m)
3234
#' plot(result)
3335
#'
34-
#' @examplesIf require("performance") && require("qqplotr")
36+
#' @examplesIf require("qqplotr")
3537
#' plot(result, type = "qq", detrend = TRUE)
3638
#'
3739
#' @export
3840
plot.see_check_normality <- function(x,
3941
type = c("qq", "pp", "density"),
4042
data = NULL,
4143
size_line = 0.8,
42-
size_point = 1.5,
44+
size_point = 2,
4345
alpha = 0.2,
4446
dot_alpha = 0.8,
4547
colors = c("#3aaf85", "#1b6ca8"),

R/plot.check_predictions.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ data_plot.performance_pp_check <- function(x, type = "density", ...) {
5555
#'
5656
#' @seealso See also the vignette about [`check_model()`](https://easystats.github.io/performance/articles/check_model.html).
5757
#'
58-
#' @examplesIf require("performance")
58+
#' @examples
59+
#' library(performance)
60+
#'
5961
#' model <- lm(Sepal.Length ~ Species * Petal.Width + Petal.Length, data = iris)
6062
#' check_predictions(model)
6163
#'

R/plot.compare_parameters.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
#'
1515
#' @return A ggplot2-object.
1616
#'
17-
#' @examplesIf require("insight") && require("parameters")
17+
#' @examples
1818
#' data(iris)
1919
#' lm1 <- lm(Sepal.Length ~ Species, data = iris)
2020
#' lm2 <- lm(Sepal.Length ~ Species + Petal.Length, data = iris)
2121
#' lm3 <- lm(Sepal.Length ~ Species * Petal.Length, data = iris)
22-
#' result <- compare_parameters(lm1, lm2, lm3)
22+
#' result <- parameters::compare_parameters(lm1, lm2, lm3)
2323
#' plot(result)
2424
#' @export
2525
plot.see_compare_parameters <- function(x,

0 commit comments

Comments
 (0)