Skip to content

Commit

Permalink
fix for plot2
Browse files Browse the repository at this point in the history
  • Loading branch information
msberends committed Sep 11, 2024
1 parent 3671b83 commit 799ceb7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: certestats
Title: A Certe R Package for Statistical Modelling
Version: 1.20.1
Version: 1.20.2
Authors@R: c(
person(given = c("Matthijs", "S."),
family = "Berends",
Expand Down Expand Up @@ -45,6 +45,7 @@ Suggests:
kknn,
mice (>= 3.7.5),
nnet,
plot2,
progress,
ranger,
rlang,
Expand All @@ -55,6 +56,6 @@ Suggests:
License: GPL-2
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Config/testthat/edition: 2
LazyData: true
4 changes: 2 additions & 2 deletions R/machine_learning.R
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ autoplot.certestats_ml <- function(object, plot_type = "roc", ...) {

if ("certeplot2" %in% rownames(utils::installed.packages())) {
p <- p +
certeplot2::theme_minimal2() +
plot2::theme_minimal2() +
certeplot2::scale_colour_certe_d()
}

Expand Down Expand Up @@ -1260,7 +1260,7 @@ autoplot.certestats_tuning <- function(object, type = c("marginals", "parameters

if ("certeplot2" %in% rownames(utils::installed.packages())) {
p <- p +
certeplot2::theme_minimal2() +
plot2::theme_minimal2() +
certeplot2::scale_colour_certe_d()
}
p
Expand Down
8 changes: 5 additions & 3 deletions R/qc_rules.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,11 @@ qc_rule_text <- function(rule, threshold) {
#' # turn into data.frame, e.g. for export
#' head(as.data.frame(x))
#'
#' if (require("certeplot2")) {
#' plot2(x,
#' subtitle = "Workflow 'example123'")
#' \dontrun{
#'
#' library(plot2)
#' plot2(x, subtitle = "Workflow 'example123'")
#'
#' }
qc_test <- function(x, m = mean(x), s = sd(x), guideline = "Nelson") {
if (guideline == "Nelson") {
Expand Down
2 changes: 1 addition & 1 deletion man/math_functions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/qc_rules.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 799ceb7

Please sign in to comment.