Skip to content

Commit a706636

Browse files
committed
switch default
1 parent 82d813b commit a706636

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

R/plot.check_collinearity.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ plot.see_check_collinearity <- function(
8282
theme,
8383
base_size,
8484
size_axis_title,
85-
size_title,
86-
default_theme = ggplot2::theme_grey()
85+
size_title
8786
)
8887

8988
ylim <- ceiling(max(x$y, na.rm = TRUE))

R/plot.check_normality.R

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ plot.see_check_normality <- function(
244244
theme,
245245
base_size,
246246
size_axis_title,
247-
size_title,
248-
default_theme = ggplot2::theme_grey()
247+
size_title
249248
)
250249

251250
ggplot2::ggplot(x, ggplot2::aes(x = .data$x)) +
@@ -299,8 +298,7 @@ plot.see_check_normality <- function(
299298
theme,
300299
base_size,
301300
size_axis_title,
302-
size_title,
303-
default_theme = ggplot2::theme_grey()
301+
size_title
304302
)
305303

306304
# Sample data if too large for performance (issue #420)
@@ -456,8 +454,7 @@ plot.see_check_normality <- function(
456454
theme,
457455
base_size,
458456
size_axis_title,
459-
size_title,
460-
default_theme = ggplot2::theme_grey()
457+
size_title
461458
)
462459

463460
if (requireNamespace("qqplotr", quietly = TRUE)) {
@@ -544,8 +541,7 @@ plot.see_check_normality <- function(
544541
theme,
545542
base_size,
546543
size_axis_title,
547-
size_title,
548-
default_theme = ggplot2::theme_grey()
544+
size_title
549545
)
550546

551547
lapply(names(x), function(i) {

R/plot.performance_simres.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ plot.see_performance_simres <- function(
5555
theme,
5656
base_size,
5757
size_axis_title,
58-
size_title,
59-
default_theme = ggplot2::theme_grey()
58+
size_title
6059
)
6160

6261
# extract data, if from check_residuals

tests/testthat/test-vdiffr_check_model.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ test_that("plot.see_check_model() works with themes", {
7171
fig = plot(performance::check_model(model, check = "linearity")) +
7272
theme_lucid()
7373
)
74+
75+
# Test with modern theme
76+
expect_doppelganger_with_seed(
77+
title = "check_model_theme_modern_2",
78+
fig = plot(performance::check_model(model, theme = theme_modern()))
79+
)
7480
})
7581

7682

0 commit comments

Comments
 (0)