diff --git a/R/utilities-background.R b/R/utilities-background.R
index d2a6db90..34323839 100644
--- a/R/utilities-background.R
+++ b/R/utilities-background.R
@@ -270,7 +270,7 @@ addWatermark <- function(plotObject,
watermark <- createWatermarkGrob(label = watermark, alpha = alpha)
- plotObject <- plotObject + ggplot2::annotation_custom(grob = watermark, xmin = -Inf, ymin = -Inf, xmax = Inf, ymax = Inf)
+ plotObject <- plotObject + ggplot2::annotation_custom(grob = watermark, xmin = I(-Inf), ymin = I(-Inf), xmax = I(Inf), ymax = I(Inf))
return(plotObject)
}
@@ -345,7 +345,7 @@ setWatermark <- function(plotObject,
watermark = watermarkConfiguration,
alpha = alpha
)
- newPlotObject$layers[[1]] <- dummyPlot$layer[[1]]
+ newPlotObject$layers[[1]] <- dummyPlot$layers[[1]]
return(newPlotObject)
}
diff --git a/tests/testthat/_snaps/pkratio/pkratioplot.svg b/tests/testthat/_snaps/pkratio/pkratioplot.svg
index c2466a50..4fdb33be 100644
--- a/tests/testthat/_snaps/pkratio/pkratioplot.svg
+++ b/tests/testthat/_snaps/pkratio/pkratioplot.svg
@@ -27,20 +27,11 @@
-
-
-
-
-
-
-
-
-
-
+
-
+
diff --git a/tests/testthat/_snaps/plot-obs-vs-pred/basic.svg b/tests/testthat/_snaps/plot-obs-vs-pred/basic.svg
index b6c3d066..4cbe26f4 100644
--- a/tests/testthat/_snaps/plot-obs-vs-pred/basic.svg
+++ b/tests/testthat/_snaps/plot-obs-vs-pred/basic.svg
@@ -27,20 +27,11 @@
-
-
-
-
-
-
-
-
-
-
+
-
+
diff --git a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-many-folds-diagonal.svg b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-many-folds-diagonal.svg
index b0583b7b..c73b4209 100644
--- a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-many-folds-diagonal.svg
+++ b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-many-folds-diagonal.svg
@@ -27,20 +27,11 @@
-
-
-
-
-
-
-
-
-
-
+
-
+
diff --git a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-many-folds.svg b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-many-folds.svg
index a34ba682..2417bcda 100644
--- a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-many-folds.svg
+++ b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-many-folds.svg
@@ -27,20 +27,11 @@
-
-
-
-
-
-
-
-
-
-
+
-
+
diff --git a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-one-fold.svg b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-one-fold.svg
index b8f3184b..461f2632 100644
--- a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-one-fold.svg
+++ b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-one-fold.svg
@@ -27,20 +27,11 @@
-
-
-
-
-
-
-
-
-
-
+
-
+
diff --git a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-several-folds.svg b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-several-folds.svg
index 75cda67c..30179138 100644
--- a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-several-folds.svg
+++ b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-several-folds.svg
@@ -27,20 +27,11 @@
-
-
-
-
-
-
-
-
-
-
+
-
+
diff --git a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-simple-abline.svg b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-simple-abline.svg
index d1918740..6b637e5f 100644
--- a/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-simple-abline.svg
+++ b/tests/testthat/_snaps/plot-obs-vs-pred/fold-distance-simple-abline.svg
@@ -27,20 +27,11 @@
-
-
-
-
-
-
-
-
-
-
+
-
+