diff --git a/.Rbuildignore b/.Rbuildignore
index e4e5d139..e091ec2d 100644
--- a/.Rbuildignore
+++ b/.Rbuildignore
@@ -3,3 +3,4 @@
^.*\.Rproj$
^\.Rproj\.user$
^tests/upgrades$
+^examples$
diff --git a/examples/iris.jasp b/examples/iris.jasp
new file mode 100644
index 00000000..f153e9b7
Binary files /dev/null and b/examples/iris.jasp differ
diff --git a/examples/penguins.jasp b/examples/penguins.jasp
new file mode 100644
index 00000000..1f0935ed
Binary files /dev/null and b/examples/penguins.jasp differ
diff --git a/examples/policeCadetEvaluation.jasp b/examples/policeCadetEvaluation.jasp
new file mode 100644
index 00000000..89cc3b5e
Binary files /dev/null and b/examples/policeCadetEvaluation.jasp differ
diff --git a/examples/spiral.jasp b/examples/spiral.jasp
new file mode 100644
index 00000000..bb70dc95
Binary files /dev/null and b/examples/spiral.jasp differ
diff --git a/examples/studentGrades.jasp b/examples/studentGrades.jasp
new file mode 100644
index 00000000..c32868fd
Binary files /dev/null and b/examples/studentGrades.jasp differ
diff --git a/examples/telcoCustomerChurn.jasp b/examples/telcoCustomerChurn.jasp
new file mode 100644
index 00000000..f6d381b6
Binary files /dev/null and b/examples/telcoCustomerChurn.jasp differ
diff --git a/examples/wine.jasp b/examples/wine.jasp
new file mode 100644
index 00000000..12091451
Binary files /dev/null and b/examples/wine.jasp differ
diff --git a/tests/testthat/_snaps/library-iris/analysis-1-figure-1-all-features.svg b/tests/testthat/_snaps/library-iris/analysis-1-figure-1-all-features.svg
new file mode 100644
index 00000000..76cfe645
--- /dev/null
+++ b/tests/testthat/_snaps/library-iris/analysis-1-figure-1-all-features.svg
@@ -0,0 +1,96 @@
+
+
diff --git a/tests/testthat/_snaps/library-iris/analysis-1-figure-2-t-sne-cluster-plot.new.svg b/tests/testthat/_snaps/library-iris/analysis-1-figure-2-t-sne-cluster-plot.new.svg
new file mode 100644
index 00000000..86dc1390
--- /dev/null
+++ b/tests/testthat/_snaps/library-iris/analysis-1-figure-2-t-sne-cluster-plot.new.svg
@@ -0,0 +1,208 @@
+
+
diff --git a/tests/testthat/_snaps/library-iris/analysis-1-figure-2-t-sne-cluster-plot.svg b/tests/testthat/_snaps/library-iris/analysis-1-figure-2-t-sne-cluster-plot.svg
new file mode 100644
index 00000000..dd1f1788
--- /dev/null
+++ b/tests/testthat/_snaps/library-iris/analysis-1-figure-2-t-sne-cluster-plot.svg
@@ -0,0 +1,200 @@
+
+
diff --git a/tests/testthat/_snaps/library-iris/reference_plotobject/analysis-1-figure-1-all-features.rds b/tests/testthat/_snaps/library-iris/reference_plotobject/analysis-1-figure-1-all-features.rds
new file mode 100644
index 00000000..e073ac51
Binary files /dev/null and b/tests/testthat/_snaps/library-iris/reference_plotobject/analysis-1-figure-1-all-features.rds differ
diff --git a/tests/testthat/_snaps/library-iris/reference_plotobject/analysis-1-figure-2-t-sne-cluster-plot.rds b/tests/testthat/_snaps/library-iris/reference_plotobject/analysis-1-figure-2-t-sne-cluster-plot.rds
new file mode 100644
index 00000000..f33b2fd5
Binary files /dev/null and b/tests/testthat/_snaps/library-iris/reference_plotobject/analysis-1-figure-2-t-sne-cluster-plot.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-1.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-1.svg
new file mode 100644
index 00000000..8d5d7444
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-1.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-10.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-10.svg
new file mode 100644
index 00000000..4088e3b0
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-10.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-11.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-11.svg
new file mode 100644
index 00000000..cf09c1f9
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-11.svg
@@ -0,0 +1,382 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-12.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-12.svg
new file mode 100644
index 00000000..805fefa4
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-12.svg
@@ -0,0 +1,401 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-13.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-13.svg
new file mode 100644
index 00000000..9b33acf0
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-13.svg
@@ -0,0 +1,401 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-14.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-14.svg
new file mode 100644
index 00000000..ce41d278
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-14.svg
@@ -0,0 +1,399 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-15.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-15.svg
new file mode 100644
index 00000000..5963a59d
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-15.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-16.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-16.svg
new file mode 100644
index 00000000..05890c53
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-16.svg
@@ -0,0 +1,401 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-17.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-17.svg
new file mode 100644
index 00000000..a83dcab9
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-17.svg
@@ -0,0 +1,399 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-18.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-18.svg
new file mode 100644
index 00000000..689f486f
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-18.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-19.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-19.svg
new file mode 100644
index 00000000..decb72c1
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-19.svg
@@ -0,0 +1,399 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-2.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-2.svg
new file mode 100644
index 00000000..8e2fb389
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-2.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-3.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-3.svg
new file mode 100644
index 00000000..87f20486
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-3.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-4.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-4.svg
new file mode 100644
index 00000000..7671fd35
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-4.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-5.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-5.svg
new file mode 100644
index 00000000..07dd11ea
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-5.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-6.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-6.svg
new file mode 100644
index 00000000..5ea182e5
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-6.svg
@@ -0,0 +1,401 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-7.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-7.svg
new file mode 100644
index 00000000..d26e1c17
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-7.svg
@@ -0,0 +1,401 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-8.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-8.svg
new file mode 100644
index 00000000..fadd6e68
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-8.svg
@@ -0,0 +1,401 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-9.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-9.svg
new file mode 100644
index 00000000..4aed58eb
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-1-decision-boundary-matrix-subplot-9.svg
@@ -0,0 +1,399 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-2-decision-tree-plot.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-2-decision-tree-plot.svg
new file mode 100644
index 00000000..b48d8fe3
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-2-decision-tree-plot.svg
@@ -0,0 +1,94 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-3-data-split.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-3-data-split.svg
new file mode 100644
index 00000000..95c9d9a0
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-3-data-split.svg
@@ -0,0 +1,42 @@
+
+
diff --git a/tests/testthat/_snaps/library-penguins/analysis-1-figure-4-roc-curves-plot.new.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-4-roc-curves-plot.new.svg
new file mode 100644
index 00000000..c3125ec4
--- /dev/null
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-4-roc-curves-plot.new.svg
@@ -0,0 +1,92 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationboosting/roc-curves-plot.svg b/tests/testthat/_snaps/library-penguins/analysis-1-figure-4-roc-curves-plot.svg
similarity index 50%
rename from tests/testthat/_snaps/mlclassificationboosting/roc-curves-plot.svg
rename to tests/testthat/_snaps/library-penguins/analysis-1-figure-4-roc-curves-plot.svg
index 2e1cf33c..5d4d5218 100644
--- a/tests/testthat/_snaps/mlclassificationboosting/roc-curves-plot.svg
+++ b/tests/testthat/_snaps/library-penguins/analysis-1-figure-4-roc-curves-plot.svg
@@ -21,22 +21,22 @@
-
-
+
+
-
-
-
-
-
-
-
-
-Perfect separation
-
+
+
+
+
+
+
+
+
+Perfect separation
+
-
+
@@ -52,33 +52,33 @@
-
-
-
-
-
-
-
-0.0
-0.2
-0.4
-0.6
-0.8
-1.0
-False Positive Rate
+
+
+
+
+
+
+
+0.0
+0.2
+0.4
+0.6
+0.8
+1.0
+False Positive Rate
True Positive Rate
-
-
-Type
-
-
-
-
-
-
-1
-2
-3
-roc-curves-plot
+
+
+jaspColumn8
+
+
+
+
+
+
+Adelie
+Chinstrap
+Gentoo
+analysis-1_figure-4_roc-curves-plot
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-1.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-1.rds
new file mode 100644
index 00000000..2553b6df
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-1.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-10.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-10.rds
new file mode 100644
index 00000000..11dd30c2
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-10.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-11.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-11.rds
new file mode 100644
index 00000000..8e602258
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-11.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-12.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-12.rds
new file mode 100644
index 00000000..f4a08b4c
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-12.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-13.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-13.rds
new file mode 100644
index 00000000..172d57e9
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-13.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-14.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-14.rds
new file mode 100644
index 00000000..387d07a8
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-14.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-15.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-15.rds
new file mode 100644
index 00000000..f15311d0
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-15.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-16.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-16.rds
new file mode 100644
index 00000000..0cabce58
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-16.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-17.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-17.rds
new file mode 100644
index 00000000..ff8d4802
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-17.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-18.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-18.rds
new file mode 100644
index 00000000..23006436
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-18.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-19.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-19.rds
new file mode 100644
index 00000000..e11f8d4c
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-19.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-2.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-2.rds
new file mode 100644
index 00000000..5fb107e0
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-2.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-3.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-3.rds
new file mode 100644
index 00000000..a531550b
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-3.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-4.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-4.rds
new file mode 100644
index 00000000..2cda3a06
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-4.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-5.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-5.rds
new file mode 100644
index 00000000..e1b2aecb
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-5.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-6.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-6.rds
new file mode 100644
index 00000000..a3a4b7a5
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-6.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-7.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-7.rds
new file mode 100644
index 00000000..8dfef9d7
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-7.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-8.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-8.rds
new file mode 100644
index 00000000..aca62998
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-8.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-9.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-9.rds
new file mode 100644
index 00000000..8be203b8
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-9.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-2-decision-tree-plot.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-2-decision-tree-plot.rds
new file mode 100644
index 00000000..95a2d825
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-2-decision-tree-plot.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-3-data-split.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-3-data-split.rds
new file mode 100644
index 00000000..088a1321
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-3-data-split.rds differ
diff --git a/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-4-roc-curves-plot.rds b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-4-roc-curves-plot.rds
new file mode 100644
index 00000000..5a6b9ec7
Binary files /dev/null and b/tests/testthat/_snaps/library-penguins/reference_plotobject/analysis-1-figure-4-roc-curves-plot.rds differ
diff --git a/tests/testthat/_snaps/library-policeCadetEvaluation/analysis-1-figure-1-decision-tree-plot.svg b/tests/testthat/_snaps/library-policeCadetEvaluation/analysis-1-figure-1-decision-tree-plot.svg
new file mode 100644
index 00000000..60c7b119
--- /dev/null
+++ b/tests/testthat/_snaps/library-policeCadetEvaluation/analysis-1-figure-1-decision-tree-plot.svg
@@ -0,0 +1,141 @@
+
+
diff --git a/tests/testthat/_snaps/library-policeCadetEvaluation/analysis-1-figure-2-data-split.svg b/tests/testthat/_snaps/library-policeCadetEvaluation/analysis-1-figure-2-data-split.svg
new file mode 100644
index 00000000..c50fc1c3
--- /dev/null
+++ b/tests/testthat/_snaps/library-policeCadetEvaluation/analysis-1-figure-2-data-split.svg
@@ -0,0 +1,42 @@
+
+
diff --git a/tests/testthat/_snaps/library-policeCadetEvaluation/reference_plotobject/analysis-1-figure-1-decision-tree-plot.rds b/tests/testthat/_snaps/library-policeCadetEvaluation/reference_plotobject/analysis-1-figure-1-decision-tree-plot.rds
new file mode 100644
index 00000000..870cfa9e
Binary files /dev/null and b/tests/testthat/_snaps/library-policeCadetEvaluation/reference_plotobject/analysis-1-figure-1-decision-tree-plot.rds differ
diff --git a/tests/testthat/_snaps/library-policeCadetEvaluation/reference_plotobject/analysis-1-figure-2-data-split.rds b/tests/testthat/_snaps/library-policeCadetEvaluation/reference_plotobject/analysis-1-figure-2-data-split.rds
new file mode 100644
index 00000000..7b3cbf09
Binary files /dev/null and b/tests/testthat/_snaps/library-policeCadetEvaluation/reference_plotobject/analysis-1-figure-2-data-split.rds differ
diff --git a/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-1.svg b/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-1.svg
new file mode 100644
index 00000000..49ea6b1c
--- /dev/null
+++ b/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-1.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-2.svg b/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-2.svg
new file mode 100644
index 00000000..09f7f50e
--- /dev/null
+++ b/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-2.svg
@@ -0,0 +1,34 @@
+
+
diff --git a/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-3.svg b/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-3.svg
new file mode 100644
index 00000000..d8b17b22
--- /dev/null
+++ b/tests/testthat/_snaps/library-spiral/analysis-1-figure-1-decision-boundary-matrix-subplot-3.svg
@@ -0,0 +1,273 @@
+
+
diff --git a/tests/testthat/_snaps/library-spiral/analysis-1-figure-2-data-split.svg b/tests/testthat/_snaps/library-spiral/analysis-1-figure-2-data-split.svg
new file mode 100644
index 00000000..af7d2654
--- /dev/null
+++ b/tests/testthat/_snaps/library-spiral/analysis-1-figure-2-data-split.svg
@@ -0,0 +1,42 @@
+
+
diff --git a/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-1.rds b/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-1.rds
new file mode 100644
index 00000000..dabc2be1
Binary files /dev/null and b/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-1.rds differ
diff --git a/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-2.rds b/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-2.rds
new file mode 100644
index 00000000..611df320
Binary files /dev/null and b/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-2.rds differ
diff --git a/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-3.rds b/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-3.rds
new file mode 100644
index 00000000..3ee0a71e
Binary files /dev/null and b/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-1-decision-boundary-matrix-subplot-3.rds differ
diff --git a/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-2-data-split.rds b/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-2-data-split.rds
new file mode 100644
index 00000000..69039521
Binary files /dev/null and b/tests/testthat/_snaps/library-spiral/reference_plotobject/analysis-1-figure-2-data-split.rds differ
diff --git a/tests/testthat/_snaps/library-studentGrades/analysis-1-figure-1-data-split.svg b/tests/testthat/_snaps/library-studentGrades/analysis-1-figure-1-data-split.svg
new file mode 100644
index 00000000..f746444d
--- /dev/null
+++ b/tests/testthat/_snaps/library-studentGrades/analysis-1-figure-1-data-split.svg
@@ -0,0 +1,44 @@
+
+
diff --git a/tests/testthat/_snaps/library-studentGrades/analysis-1-figure-2-predictive-performance-plot.svg b/tests/testthat/_snaps/library-studentGrades/analysis-1-figure-2-predictive-performance-plot.svg
new file mode 100644
index 00000000..7fa2c0f1
--- /dev/null
+++ b/tests/testthat/_snaps/library-studentGrades/analysis-1-figure-2-predictive-performance-plot.svg
@@ -0,0 +1,141 @@
+
+
diff --git a/tests/testthat/_snaps/library-studentGrades/reference_plotobject/analysis-1-figure-1-data-split.rds b/tests/testthat/_snaps/library-studentGrades/reference_plotobject/analysis-1-figure-1-data-split.rds
new file mode 100644
index 00000000..2cf64014
Binary files /dev/null and b/tests/testthat/_snaps/library-studentGrades/reference_plotobject/analysis-1-figure-1-data-split.rds differ
diff --git a/tests/testthat/_snaps/library-studentGrades/reference_plotobject/analysis-1-figure-2-predictive-performance-plot.rds b/tests/testthat/_snaps/library-studentGrades/reference_plotobject/analysis-1-figure-2-predictive-performance-plot.rds
new file mode 100644
index 00000000..28086d92
Binary files /dev/null and b/tests/testthat/_snaps/library-studentGrades/reference_plotobject/analysis-1-figure-2-predictive-performance-plot.rds differ
diff --git a/tests/testthat/_snaps/library-wine/analysis-1-figure-1-elbow-method-plot.svg b/tests/testthat/_snaps/library-wine/analysis-1-figure-1-elbow-method-plot.svg
new file mode 100644
index 00000000..02118565
--- /dev/null
+++ b/tests/testthat/_snaps/library-wine/analysis-1-figure-1-elbow-method-plot.svg
@@ -0,0 +1,81 @@
+
+
diff --git a/tests/testthat/_snaps/library-wine/analysis-1-figure-2-t-sne-cluster-plot.new.svg b/tests/testthat/_snaps/library-wine/analysis-1-figure-2-t-sne-cluster-plot.new.svg
new file mode 100644
index 00000000..f7fdee4d
--- /dev/null
+++ b/tests/testthat/_snaps/library-wine/analysis-1-figure-2-t-sne-cluster-plot.new.svg
@@ -0,0 +1,237 @@
+
+
diff --git a/tests/testthat/_snaps/library-wine/analysis-1-figure-2-t-sne-cluster-plot.svg b/tests/testthat/_snaps/library-wine/analysis-1-figure-2-t-sne-cluster-plot.svg
new file mode 100644
index 00000000..762b3acf
--- /dev/null
+++ b/tests/testthat/_snaps/library-wine/analysis-1-figure-2-t-sne-cluster-plot.svg
@@ -0,0 +1,229 @@
+
+
diff --git a/tests/testthat/_snaps/library-wine/reference_plotobject/analysis-1-figure-1-elbow-method-plot.rds b/tests/testthat/_snaps/library-wine/reference_plotobject/analysis-1-figure-1-elbow-method-plot.rds
new file mode 100644
index 00000000..e720d16a
Binary files /dev/null and b/tests/testthat/_snaps/library-wine/reference_plotobject/analysis-1-figure-1-elbow-method-plot.rds differ
diff --git a/tests/testthat/_snaps/library-wine/reference_plotobject/analysis-1-figure-2-t-sne-cluster-plot.rds b/tests/testthat/_snaps/library-wine/reference_plotobject/analysis-1-figure-2-t-sne-cluster-plot.rds
new file mode 100644
index 00000000..7bda70f0
Binary files /dev/null and b/tests/testthat/_snaps/library-wine/reference_plotobject/analysis-1-figure-2-t-sne-cluster-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationboosting/andrews-curves-plot.svg b/tests/testthat/_snaps/mlclassificationboosting/andrews-curves-plot.svg
deleted file mode 100644
index 9d9b44d2..00000000
--- a/tests/testthat/_snaps/mlclassificationboosting/andrews-curves-plot.svg
+++ /dev/null
@@ -1,253 +0,0 @@
-
-
diff --git a/tests/testthat/_snaps/mlclassificationboosting/data-split.new.svg b/tests/testthat/_snaps/mlclassificationboosting/data-split.new.svg
new file mode 100644
index 00000000..1b59f83d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationboosting/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationboosting/deviance-plot-mac.new.svg b/tests/testthat/_snaps/mlclassificationboosting/deviance-plot-mac.new.svg
new file mode 100644
index 00000000..19d0af02
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationboosting/deviance-plot-mac.new.svg
@@ -0,0 +1,77 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationboosting/deviance-plot.svg b/tests/testthat/_snaps/mlclassificationboosting/deviance-plot.svg
deleted file mode 100644
index 3fda47f7..00000000
--- a/tests/testthat/_snaps/mlclassificationboosting/deviance-plot.svg
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
diff --git a/tests/testthat/_snaps/mlclassificationboosting/out-of-bag-improvement-plot-mac.new.svg b/tests/testthat/_snaps/mlclassificationboosting/out-of-bag-improvement-plot-mac.new.svg
new file mode 100644
index 00000000..37665c43
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationboosting/out-of-bag-improvement-plot-mac.new.svg
@@ -0,0 +1,88 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationboosting/out-of-bag-improvement-plot.svg b/tests/testthat/_snaps/mlclassificationboosting/out-of-bag-improvement-plot.svg
deleted file mode 100644
index ec61044d..00000000
--- a/tests/testthat/_snaps/mlclassificationboosting/out-of-bag-improvement-plot.svg
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
diff --git a/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/andrews-curves-plot-mac.rds b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/andrews-curves-plot-mac.rds
new file mode 100644
index 00000000..455f0f32
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/andrews-curves-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..7267683c
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/deviance-plot-mac.rds b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/deviance-plot-mac.rds
new file mode 100644
index 00000000..c1db507a
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/deviance-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/out-of-bag-improvement-plot-mac.rds b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/out-of-bag-improvement-plot-mac.rds
new file mode 100644
index 00000000..f5eafc13
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/out-of-bag-improvement-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/relative-influence-plot-mac.rds b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/relative-influence-plot-mac.rds
new file mode 100644
index 00000000..8fd3a75f
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/relative-influence-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/roc-curves-plot-mac.rds b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/roc-curves-plot-mac.rds
new file mode 100644
index 00000000..27850a50
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationboosting/reference_plotobject/roc-curves-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot-mac.new.svg b/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot-mac.new.svg
new file mode 100644
index 00000000..0943e94c
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot-mac.new.svg
@@ -0,0 +1,89 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot.svg b/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot.svg
deleted file mode 100644
index 8c927d33..00000000
--- a/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot.svg
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
diff --git a/tests/testthat/_snaps/mlclassificationboosting/roc-curves-plot-mac.new.svg b/tests/testthat/_snaps/mlclassificationboosting/roc-curves-plot-mac.new.svg
new file mode 100644
index 00000000..66ad5119
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationboosting/roc-curves-plot-mac.new.svg
@@ -0,0 +1,92 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationdecisiontree/data-split.new.svg b/tests/testthat/_snaps/mlclassificationdecisiontree/data-split.new.svg
new file mode 100644
index 00000000..9623c848
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationdecisiontree/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationdecisiontree/decision-tree-plot.new.svg b/tests/testthat/_snaps/mlclassificationdecisiontree/decision-tree-plot.new.svg
new file mode 100644
index 00000000..9fd2f84f
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationdecisiontree/decision-tree-plot.new.svg
@@ -0,0 +1,76 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/classification-accuracy-plot.rds b/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/classification-accuracy-plot.rds
new file mode 100644
index 00000000..ac96345b
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/classification-accuracy-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..b0c0d807
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/decision-tree-plot.rds b/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/decision-tree-plot.rds
new file mode 100644
index 00000000..7fc4d614
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationdecisiontree/reference_plotobject/decision-tree-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationknn/data-split.new.svg b/tests/testthat/_snaps/mlclassificationknn/data-split.new.svg
new file mode 100644
index 00000000..1b59f83d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationknn/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/andrews-curves-plot.rds b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/andrews-curves-plot.rds
new file mode 100644
index 00000000..e2516180
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/andrews-curves-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/classification-accuracy-plot.rds b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/classification-accuracy-plot.rds
new file mode 100644
index 00000000..83ad4483
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/classification-accuracy-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..7267683c
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/rectangular-weight-function.rds b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/rectangular-weight-function.rds
new file mode 100644
index 00000000..ac850ed3
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/rectangular-weight-function.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/roc-curves-plot.rds b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/roc-curves-plot.rds
new file mode 100644
index 00000000..4adc9ab7
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationknn/reference_plotobject/roc-curves-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationknn/roc-curves-plot.new.svg b/tests/testthat/_snaps/mlclassificationknn/roc-curves-plot.new.svg
new file mode 100644
index 00000000..7fc9fc03
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationknn/roc-curves-plot.new.svg
@@ -0,0 +1,92 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/data-split.new.svg b/tests/testthat/_snaps/mlclassificationlda/data-split.new.svg
new file mode 100644
index 00000000..19193c89
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/data-split.new.svg
@@ -0,0 +1,41 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-1.new.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-1.new.svg
new file mode 100644
index 00000000..8b0b9c33
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-1.new.svg
@@ -0,0 +1,33 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-2.new.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-2.new.svg
new file mode 100644
index 00000000..f957b287
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-2.new.svg
@@ -0,0 +1,33 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-3.new.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-3.new.svg
new file mode 100644
index 00000000..8af70893
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-3.new.svg
@@ -0,0 +1,33 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-4.new.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-4.new.svg
new file mode 100644
index 00000000..557bdc3d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-4.new.svg
@@ -0,0 +1,67 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-5.new.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-5.new.svg
new file mode 100644
index 00000000..8aba5952
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-5.new.svg
@@ -0,0 +1,235 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-6.new.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-6.new.svg
new file mode 100644
index 00000000..7d2eb83c
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-6.new.svg
@@ -0,0 +1,33 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-8.new.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-8.new.svg
new file mode 100644
index 00000000..24ec9e7d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-8.new.svg
@@ -0,0 +1,67 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/andrews-curves-plot.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/andrews-curves-plot.rds
new file mode 100644
index 00000000..4082e9f0
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/andrews-curves-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..685e5d29
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-1.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-1.rds
new file mode 100644
index 00000000..07e1b83d
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-1.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-2.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-2.rds
new file mode 100644
index 00000000..e13a41ae
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-2.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-3.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-3.rds
new file mode 100644
index 00000000..af35e3fd
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-3.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-4.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-4.rds
new file mode 100644
index 00000000..9361658f
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-4.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-5.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-5.rds
new file mode 100644
index 00000000..2dac78dd
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-5.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-6.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-6.rds
new file mode 100644
index 00000000..85f5785f
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-6.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-7.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-7.rds
new file mode 100644
index 00000000..89eb694a
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-7.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-8.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-8.rds
new file mode 100644
index 00000000..92d333ca
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/linear-discriminant-matrix-subplot-8.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/roc-curves-plot.rds b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/roc-curves-plot.rds
new file mode 100644
index 00000000..6833b2bd
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlda/reference_plotobject/roc-curves-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlda/roc-curves-plot.new.svg b/tests/testthat/_snaps/mlclassificationlda/roc-curves-plot.new.svg
new file mode 100644
index 00000000..16607d2d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlda/roc-curves-plot.new.svg
@@ -0,0 +1,92 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-1.new.svg b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-1.new.svg
new file mode 100644
index 00000000..8a987f17
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-1.new.svg
@@ -0,0 +1,41 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-2.new.svg b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-2.new.svg
new file mode 100644
index 00000000..83c1a72d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-2.new.svg
@@ -0,0 +1,41 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationlogisticmultinomial/reference_plotobject/data-split-1.rds b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/reference_plotobject/data-split-1.rds
new file mode 100644
index 00000000..69039521
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/reference_plotobject/data-split-1.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationlogisticmultinomial/reference_plotobject/data-split-2.rds b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/reference_plotobject/data-split-2.rds
new file mode 100644
index 00000000..66b6c15d
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/reference_plotobject/data-split-2.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationnaivebayes/data-split.new.svg b/tests/testthat/_snaps/mlclassificationnaivebayes/data-split.new.svg
new file mode 100644
index 00000000..83c1a72d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationnaivebayes/data-split.new.svg
@@ -0,0 +1,41 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationnaivebayes/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlclassificationnaivebayes/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..66b6c15d
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationnaivebayes/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/data-split.new.svg b/tests/testthat/_snaps/mlclassificationrandomforest/data-split.new.svg
new file mode 100644
index 00000000..1b59f83d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationrandomforest/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/mean-decrease-in-accuracy-mac.new.svg b/tests/testthat/_snaps/mlclassificationrandomforest/mean-decrease-in-accuracy-mac.new.svg
new file mode 100644
index 00000000..5a0793ba
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationrandomforest/mean-decrease-in-accuracy-mac.new.svg
@@ -0,0 +1,85 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/andrews-curves-plot.rds b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/andrews-curves-plot.rds
new file mode 100644
index 00000000..fe11d15d
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/andrews-curves-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..7267683c
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/mean-decrease-in-accuracy-mac.rds b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/mean-decrease-in-accuracy-mac.rds
new file mode 100644
index 00000000..88a8bc42
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/mean-decrease-in-accuracy-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/out-of-bag-classification-accuracy-plot-mac.rds b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/out-of-bag-classification-accuracy-plot-mac.rds
new file mode 100644
index 00000000..b419a0b3
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/out-of-bag-classification-accuracy-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/roc-curves-plot.rds b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/roc-curves-plot.rds
new file mode 100644
index 00000000..c41e014a
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/roc-curves-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/total-increase-in-node-purity-mac.rds b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/total-increase-in-node-purity-mac.rds
new file mode 100644
index 00000000..0e1d6ead
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationrandomforest/reference_plotobject/total-increase-in-node-purity-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/roc-curves-plot.new.svg b/tests/testthat/_snaps/mlclassificationrandomforest/roc-curves-plot.new.svg
new file mode 100644
index 00000000..522221f9
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationrandomforest/roc-curves-plot.new.svg
@@ -0,0 +1,92 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/total-increase-in-node-purity-mac.new.svg b/tests/testthat/_snaps/mlclassificationrandomforest/total-increase-in-node-purity-mac.new.svg
new file mode 100644
index 00000000..43a85c97
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationrandomforest/total-increase-in-node-purity-mac.new.svg
@@ -0,0 +1,83 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationsvm/data-split.new.svg b/tests/testthat/_snaps/mlclassificationsvm/data-split.new.svg
new file mode 100644
index 00000000..9623c848
--- /dev/null
+++ b/tests/testthat/_snaps/mlclassificationsvm/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlclassificationsvm/reference_plotobject/classification-accuracy-plot.rds b/tests/testthat/_snaps/mlclassificationsvm/reference_plotobject/classification-accuracy-plot.rds
new file mode 100644
index 00000000..0767da39
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationsvm/reference_plotobject/classification-accuracy-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclassificationsvm/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlclassificationsvm/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..b0c0d807
Binary files /dev/null and b/tests/testthat/_snaps/mlclassificationsvm/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringdensitybased/all-predictors.new.svg b/tests/testthat/_snaps/mlclusteringdensitybased/all-predictors.new.svg
new file mode 100644
index 00000000..c7fe4a41
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringdensitybased/all-predictors.new.svg
@@ -0,0 +1,348 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringdensitybased/k-distance-plot.new.svg b/tests/testthat/_snaps/mlclusteringdensitybased/k-distance-plot.new.svg
new file mode 100644
index 00000000..65fb32dd
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringdensitybased/k-distance-plot.new.svg
@@ -0,0 +1,78 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringdensitybased/reference_plotobject/all-predictors.rds b/tests/testthat/_snaps/mlclusteringdensitybased/reference_plotobject/all-predictors.rds
new file mode 100644
index 00000000..b0dbe6e8
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringdensitybased/reference_plotobject/all-predictors.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringdensitybased/reference_plotobject/k-distance-plot.rds b/tests/testthat/_snaps/mlclusteringdensitybased/reference_plotobject/k-distance-plot.rds
new file mode 100644
index 00000000..2828bca9
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringdensitybased/reference_plotobject/k-distance-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringfuzzycmeans/all-predictors.new.svg b/tests/testthat/_snaps/mlclusteringfuzzycmeans/all-predictors.new.svg
new file mode 100644
index 00000000..feb07929
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringfuzzycmeans/all-predictors.new.svg
@@ -0,0 +1,295 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringfuzzycmeans/reference_plotobject/all-predictors.rds b/tests/testthat/_snaps/mlclusteringfuzzycmeans/reference_plotobject/all-predictors.rds
new file mode 100644
index 00000000..17fc4f0a
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringfuzzycmeans/reference_plotobject/all-predictors.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringfuzzycmeans/reference_plotobject/elbow-method-plot.rds b/tests/testthat/_snaps/mlclusteringfuzzycmeans/reference_plotobject/elbow-method-plot.rds
new file mode 100644
index 00000000..6ec5bb41
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringfuzzycmeans/reference_plotobject/elbow-method-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringhierarchical/all-predictors.new.svg b/tests/testthat/_snaps/mlclusteringhierarchical/all-predictors.new.svg
new file mode 100644
index 00000000..ab484693
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringhierarchical/all-predictors.new.svg
@@ -0,0 +1,464 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringhierarchical/dendogram.new.svg b/tests/testthat/_snaps/mlclusteringhierarchical/dendogram.new.svg
new file mode 100644
index 00000000..75acce47
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringhierarchical/dendogram.new.svg
@@ -0,0 +1,753 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/all-predictors.rds b/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/all-predictors.rds
new file mode 100644
index 00000000..67f6dc73
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/all-predictors.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/dendogram.rds b/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/dendogram.rds
new file mode 100644
index 00000000..7b8fa347
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/dendogram.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/elbow-method-plot.rds b/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/elbow-method-plot.rds
new file mode 100644
index 00000000..ff318635
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringhierarchical/reference_plotobject/elbow-method-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-2.new.svg b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-2.new.svg
new file mode 100644
index 00000000..04c6f38f
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-2.new.svg
@@ -0,0 +1,403 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-3.new.svg b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-3.new.svg
new file mode 100644
index 00000000..b420a50d
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-3.new.svg
@@ -0,0 +1,354 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors.new.svg b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors.new.svg
new file mode 100644
index 00000000..2d81e240
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors.new.svg
@@ -0,0 +1,352 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors-2.rds b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors-2.rds
new file mode 100644
index 00000000..bd9a92dd
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors-2.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors-3.rds b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors-3.rds
new file mode 100644
index 00000000..62e20252
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors-3.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors.rds b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors.rds
new file mode 100644
index 00000000..478db173
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/all-predictors.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot-2.rds b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot-2.rds
new file mode 100644
index 00000000..c10dfbbd
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot-2.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot-3.rds b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot-3.rds
new file mode 100644
index 00000000..4bf6c1bc
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot-3.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot.rds b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot.rds
new file mode 100644
index 00000000..94aed9cf
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringkmeans/reference_plotobject/elbow-method-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringmodelbased/all-predictors.new.svg b/tests/testthat/_snaps/mlclusteringmodelbased/all-predictors.new.svg
new file mode 100644
index 00000000..8e0ae844
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringmodelbased/all-predictors.new.svg
@@ -0,0 +1,242 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringmodelbased/reference_plotobject/all-predictors.rds b/tests/testthat/_snaps/mlclusteringmodelbased/reference_plotobject/all-predictors.rds
new file mode 100644
index 00000000..758289b2
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringmodelbased/reference_plotobject/all-predictors.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringmodelbased/reference_plotobject/elbow-method-plot.rds b/tests/testthat/_snaps/mlclusteringmodelbased/reference_plotobject/elbow-method-plot.rds
new file mode 100644
index 00000000..76501f87
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringmodelbased/reference_plotobject/elbow-method-plot.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringrandomforest/all-predictors-mac.new.svg b/tests/testthat/_snaps/mlclusteringrandomforest/all-predictors-mac.new.svg
new file mode 100644
index 00000000..00021dde
--- /dev/null
+++ b/tests/testthat/_snaps/mlclusteringrandomforest/all-predictors-mac.new.svg
@@ -0,0 +1,242 @@
+
+
diff --git a/tests/testthat/_snaps/mlclusteringrandomforest/reference_plotobject/all-predictors-mac.rds b/tests/testthat/_snaps/mlclusteringrandomforest/reference_plotobject/all-predictors-mac.rds
new file mode 100644
index 00000000..01496f58
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringrandomforest/reference_plotobject/all-predictors-mac.rds differ
diff --git a/tests/testthat/_snaps/mlclusteringrandomforest/reference_plotobject/elbow-method-plot-mac.rds b/tests/testthat/_snaps/mlclusteringrandomforest/reference_plotobject/elbow-method-plot-mac.rds
new file mode 100644
index 00000000..e720d16a
Binary files /dev/null and b/tests/testthat/_snaps/mlclusteringrandomforest/reference_plotobject/elbow-method-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlregressionboosting/data-split.new.svg b/tests/testthat/_snaps/mlregressionboosting/data-split.new.svg
new file mode 100644
index 00000000..1b59f83d
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionboosting/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..7267683c
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/deviance-plot.rds b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/deviance-plot.rds
new file mode 100644
index 00000000..dea568d3
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/deviance-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/out-of-bag-improvement-plot.rds b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/out-of-bag-improvement-plot.rds
new file mode 100644
index 00000000..cac94d49
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/out-of-bag-improvement-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/predictive-performance-plot.rds b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/predictive-performance-plot.rds
new file mode 100644
index 00000000..b57999c6
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/predictive-performance-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/relative-influence-plot.rds b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/relative-influence-plot.rds
new file mode 100644
index 00000000..2b479c70
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionboosting/reference_plotobject/relative-influence-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionboosting/relative-influence-plot.new.svg b/tests/testthat/_snaps/mlregressionboosting/relative-influence-plot.new.svg
new file mode 100644
index 00000000..2fed2bd9
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionboosting/relative-influence-plot.new.svg
@@ -0,0 +1,87 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressiondecisiontree/data-split.new.svg b/tests/testthat/_snaps/mlregressiondecisiontree/data-split.new.svg
new file mode 100644
index 00000000..9623c848
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressiondecisiontree/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressiondecisiontree/decision-tree-plot.new.svg b/tests/testthat/_snaps/mlregressiondecisiontree/decision-tree-plot.new.svg
new file mode 100644
index 00000000..1109e41c
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressiondecisiontree/decision-tree-plot.new.svg
@@ -0,0 +1,161 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..b0c0d807
Binary files /dev/null and b/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/decision-tree-plot.rds b/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/decision-tree-plot.rds
new file mode 100644
index 00000000..2b89a102
Binary files /dev/null and b/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/decision-tree-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/mean-squared-error-plot.rds b/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/mean-squared-error-plot.rds
new file mode 100644
index 00000000..5291fbca
Binary files /dev/null and b/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/mean-squared-error-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/predictive-performance-plot.rds b/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/predictive-performance-plot.rds
new file mode 100644
index 00000000..e5d27c4b
Binary files /dev/null and b/tests/testthat/_snaps/mlregressiondecisiontree/reference_plotobject/predictive-performance-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionknn/data-split.new.svg b/tests/testthat/_snaps/mlregressionknn/data-split.new.svg
new file mode 100644
index 00000000..1b59f83d
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionknn/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressionknn/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlregressionknn/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..7267683c
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionknn/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlregressionknn/reference_plotobject/mean-squared-error-plot.rds b/tests/testthat/_snaps/mlregressionknn/reference_plotobject/mean-squared-error-plot.rds
new file mode 100644
index 00000000..f2ce296e
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionknn/reference_plotobject/mean-squared-error-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionknn/reference_plotobject/predictive-performance-plot.rds b/tests/testthat/_snaps/mlregressionknn/reference_plotobject/predictive-performance-plot.rds
new file mode 100644
index 00000000..7f0d0fb0
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionknn/reference_plotobject/predictive-performance-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionlinear/data-split.new.svg b/tests/testthat/_snaps/mlregressionlinear/data-split.new.svg
new file mode 100644
index 00000000..83c1a72d
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionlinear/data-split.new.svg
@@ -0,0 +1,41 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressionlinear/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlregressionlinear/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..66b6c15d
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionlinear/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlregressionlinear/reference_plotobject/predictive-performance-plot.rds b/tests/testthat/_snaps/mlregressionlinear/reference_plotobject/predictive-performance-plot.rds
new file mode 100644
index 00000000..73a37203
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionlinear/reference_plotobject/predictive-performance-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionrandomforest/data-split.new.svg b/tests/testthat/_snaps/mlregressionrandomforest/data-split.new.svg
new file mode 100644
index 00000000..1b59f83d
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionrandomforest/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressionrandomforest/mean-decrease-in-accuracy-mac.new.svg b/tests/testthat/_snaps/mlregressionrandomforest/mean-decrease-in-accuracy-mac.new.svg
new file mode 100644
index 00000000..1d858124
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionrandomforest/mean-decrease-in-accuracy-mac.new.svg
@@ -0,0 +1,89 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..7267683c
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/mean-decrease-in-accuracy-mac.rds b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/mean-decrease-in-accuracy-mac.rds
new file mode 100644
index 00000000..57befa2b
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/mean-decrease-in-accuracy-mac.rds differ
diff --git a/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/out-of-bag-mean-squared-error-plot-mac.rds b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/out-of-bag-mean-squared-error-plot-mac.rds
new file mode 100644
index 00000000..27b55d8f
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/out-of-bag-mean-squared-error-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/predictive-performance-plot-mac.rds b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/predictive-performance-plot-mac.rds
new file mode 100644
index 00000000..c0baa151
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/predictive-performance-plot-mac.rds differ
diff --git a/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/total-increase-in-node-purity.rds b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/total-increase-in-node-purity.rds
new file mode 100644
index 00000000..d788e40a
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionrandomforest/reference_plotobject/total-increase-in-node-purity.rds differ
diff --git a/tests/testthat/_snaps/mlregressionrandomforest/total-increase-in-node-purity.new.svg b/tests/testthat/_snaps/mlregressionrandomforest/total-increase-in-node-purity.new.svg
new file mode 100644
index 00000000..5862de5f
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionrandomforest/total-increase-in-node-purity.new.svg
@@ -0,0 +1,81 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressionregularized/data-split.new.svg b/tests/testthat/_snaps/mlregressionregularized/data-split.new.svg
new file mode 100644
index 00000000..1b59f83d
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionregularized/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..7267683c
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/lambda-evaluation-plot.rds b/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/lambda-evaluation-plot.rds
new file mode 100644
index 00000000..dc8f302b
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/lambda-evaluation-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/predictive-performance-plot.rds b/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/predictive-performance-plot.rds
new file mode 100644
index 00000000..8d0982f1
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/predictive-performance-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/variable-trace-plot.rds b/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/variable-trace-plot.rds
new file mode 100644
index 00000000..39634d8b
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionregularized/reference_plotobject/variable-trace-plot.rds differ
diff --git a/tests/testthat/_snaps/mlregressionsvm/data-split.new.svg b/tests/testthat/_snaps/mlregressionsvm/data-split.new.svg
new file mode 100644
index 00000000..9623c848
--- /dev/null
+++ b/tests/testthat/_snaps/mlregressionsvm/data-split.new.svg
@@ -0,0 +1,43 @@
+
+
diff --git a/tests/testthat/_snaps/mlregressionsvm/reference_plotobject/data-split.rds b/tests/testthat/_snaps/mlregressionsvm/reference_plotobject/data-split.rds
new file mode 100644
index 00000000..b0c0d807
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionsvm/reference_plotobject/data-split.rds differ
diff --git a/tests/testthat/_snaps/mlregressionsvm/reference_plotobject/predictive-performance-plot.rds b/tests/testthat/_snaps/mlregressionsvm/reference_plotobject/predictive-performance-plot.rds
new file mode 100644
index 00000000..d8e89dae
Binary files /dev/null and b/tests/testthat/_snaps/mlregressionsvm/reference_plotobject/predictive-performance-plot.rds differ
diff --git a/tests/testthat/jaspfiles/library/iris.jasp b/tests/testthat/jaspfiles/library/iris.jasp
new file mode 100644
index 00000000..f153e9b7
Binary files /dev/null and b/tests/testthat/jaspfiles/library/iris.jasp differ
diff --git a/tests/testthat/jaspfiles/library/penguins.jasp b/tests/testthat/jaspfiles/library/penguins.jasp
new file mode 100644
index 00000000..1f0935ed
Binary files /dev/null and b/tests/testthat/jaspfiles/library/penguins.jasp differ
diff --git a/tests/testthat/jaspfiles/library/policeCadetEvaluation.jasp b/tests/testthat/jaspfiles/library/policeCadetEvaluation.jasp
new file mode 100644
index 00000000..89cc3b5e
Binary files /dev/null and b/tests/testthat/jaspfiles/library/policeCadetEvaluation.jasp differ
diff --git a/tests/testthat/jaspfiles/library/spiral.jasp b/tests/testthat/jaspfiles/library/spiral.jasp
new file mode 100644
index 00000000..bb70dc95
Binary files /dev/null and b/tests/testthat/jaspfiles/library/spiral.jasp differ
diff --git a/tests/testthat/jaspfiles/library/studentGrades.jasp b/tests/testthat/jaspfiles/library/studentGrades.jasp
new file mode 100644
index 00000000..c32868fd
Binary files /dev/null and b/tests/testthat/jaspfiles/library/studentGrades.jasp differ
diff --git a/tests/testthat/jaspfiles/library/telcoCustomerChurn.jasp b/tests/testthat/jaspfiles/library/telcoCustomerChurn.jasp
new file mode 100644
index 00000000..f6d381b6
Binary files /dev/null and b/tests/testthat/jaspfiles/library/telcoCustomerChurn.jasp differ
diff --git a/tests/testthat/jaspfiles/library/wine.jasp b/tests/testthat/jaspfiles/library/wine.jasp
new file mode 100644
index 00000000..12091451
Binary files /dev/null and b/tests/testthat/jaspfiles/library/wine.jasp differ
diff --git a/tests/testthat/test-library-iris.R b/tests/testthat/test-library-iris.R
new file mode 100644
index 00000000..9e8c626f
--- /dev/null
+++ b/tests/testthat/test-library-iris.R
@@ -0,0 +1,41 @@
+context("Library: iris")
+
+# This test file was auto-generated from a JASP example file.
+# The JASP file is stored in tests/testthat/jaspfiles/library/.
+
+test_that("mlClusteringKMeans results match", {
+
+ # Load from JASP example file
+ jaspFile <- testthat::test_path("jaspfiles", "library", "iris.jasp")
+ opts <- jaspTools::analysisOptions(jaspFile)
+ dataset <- jaspTools::extractDatasetFromJASPFile(jaspFile)
+
+ # Encode and run analysis
+ encoded <- jaspTools:::encodeOptionsAndDataset(opts, dataset)
+ set.seed(1)
+ results <- jaspTools::runAnalysis("mlClusteringKMeans", encoded$dataset, encoded$options, encodedDataset = TRUE)
+
+ plotName <- results[["results"]][["clusterDensities"]][["collection"]][["clusterDensities_oneFigure"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-1_all-features")
+
+ table <- results[["results"]][["clusterInfoTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(-1.01119138320281, 0.850413715115632, -1.30063008999938, -1.25070351696687,
+ 1, 0.340925770899256, 0.636316174439295, 50, 47.3506211055712,
+ -0.0500522113876544, -0.880426958760276, 0.346576747898886,
+ 0.280587305699797, 2, 0.31743153016038, 0.393377210558143, 53,
+ 44.0875445465443, 1.13217736944013, 0.0881264480534628, 0.992828443858037,
+ 1.01412869460115, 3, 0.341642698940364, 0.347392234026205, 47,
+ 47.450194065236))
+
+ table <- results[["results"]][["clusteringTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(0.46, 162.89, 199.02, 3, 0.766965839400417, 150))
+
+ plotName <- results[["results"]][["plot2dCluster"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-2_t-sne-cluster-plot")
+
+})
+
diff --git a/tests/testthat/test-library-penguins.R b/tests/testthat/test-library-penguins.R
new file mode 100644
index 00000000..81119a0b
--- /dev/null
+++ b/tests/testthat/test-library-penguins.R
@@ -0,0 +1,53 @@
+context("Library: penguins")
+
+# This test file was auto-generated from a JASP example file.
+# The JASP file is stored in tests/testthat/jaspfiles/library/.
+
+test_that("mlClassificationDecisionTree results match", {
+
+ # Load from JASP example file
+ jaspFile <- testthat::test_path("jaspfiles", "library", "penguins.jasp")
+ opts <- jaspTools::analysisOptions(jaspFile)
+ dataset <- jaspTools::extractDatasetFromJASPFile(jaspFile)
+
+ # Encode and run analysis
+ encoded <- jaspTools:::encodeOptionsAndDataset(opts, dataset)
+ set.seed(1)
+ results <- jaspTools::runAnalysis("mlClassificationDecisionTree", encoded$dataset, encoded$options, encodedDataset = TRUE)
+
+ table <- results[["results"]][["classificationTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(33, 300, 0.01, 22, 1))
+
+ table <- results[["results"]][["confusionTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list("Observed", "Adelie", 17, 0, 0, "", "Chinstrap", 0, 10, 0, "",
+ "Gentoo", 0, 0, 6))
+
+ plotName <- results[["results"]][["decisionBoundary"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-1_decision-boundary-matrix")
+
+ plotName <- results[["results"]][["decisionTreePlot"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-2_decision-tree-plot")
+
+ plotName <- results[["results"]][["plotDataSplit"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-3_data-split")
+
+ plotName <- results[["results"]][["rocCurve"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-4_roc-curves-plot")
+
+ table <- results[["results"]][["validationMeasures"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(1, 0.970588235294118, 1, 0, 0, 0, 0, "Adelie", 1, 1, 1, 1, 0.515151515151515,
+ 17, 1, "", 1, 1, 1, 0, 0, 0, 0, "Chinstrap", 1, 1,
+ 1, 1, 0.303030303030303, 10, 1, "", 1, 1, 1, 0, 0,
+ 0, 0, "Gentoo", 1, 1, 1, 1, 0.181818181818182, 6, 1, "",
+ 1, 0.990196078431373, 1, 0, 0, 0, 0, "Average / Total", 1, 1,
+ 1, 1, 1, 33, 1, ""))
+
+})
+
diff --git a/tests/testthat/test-library-policeCadetEvaluation.R b/tests/testthat/test-library-policeCadetEvaluation.R
new file mode 100644
index 00000000..7cad058b
--- /dev/null
+++ b/tests/testthat/test-library-policeCadetEvaluation.R
@@ -0,0 +1,43 @@
+context("Library: policeCadetEvaluation")
+
+# This test file was auto-generated from a JASP example file.
+# The JASP file is stored in tests/testthat/jaspfiles/library/.
+
+test_that("mlClassificationDecisionTree results match", {
+
+ # Load from JASP example file
+ jaspFile <- testthat::test_path("jaspfiles", "library", "policeCadetEvaluation.jasp")
+ opts <- jaspTools::analysisOptions(jaspFile)
+ dataset <- jaspTools::extractDatasetFromJASPFile(jaspFile)
+
+ # Encode and run analysis
+ encoded <- jaspTools:::encodeOptionsAndDataset(opts, dataset)
+ set.seed(1)
+ results <- jaspTools::runAnalysis("mlClassificationDecisionTree", encoded$dataset, encoded$options, encodedDataset = TRUE)
+
+ table <- results[["results"]][["classificationTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(400, 1600, 0.001, 22, 0.79))
+
+ table <- results[["results"]][["confusionTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list("Observed", "Fail", 0, 81, "", "Pass", 3, 316))
+
+ plotName <- results[["results"]][["decisionTreePlot"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-1_decision-tree-plot")
+
+ plotName <- results[["results"]][["plotDataSplit"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-2_data-split")
+
+ table <- results[["results"]][["splitsTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(1600, 40.9912821282016, 0.5, "jaspColumn3", 739, 1.25676113142475,
+ 0.5, "jaspColumn2", 524, 0.65386154342491, 5, "jaspColumn4",
+ 501, 0.695752656461394, 7, "jaspColumn5", 63, 3.30687830687831,
+ 26.5, "jaspColumn1", 215, 1.31686685407615, 39.5, "jaspColumn1"
+ ))
+
+})
+
diff --git a/tests/testthat/test-library-spiral.R b/tests/testthat/test-library-spiral.R
new file mode 100644
index 00000000..62890646
--- /dev/null
+++ b/tests/testthat/test-library-spiral.R
@@ -0,0 +1,48 @@
+context("Library: spiral")
+
+# This test file was auto-generated from a JASP example file.
+# The JASP file is stored in tests/testthat/jaspfiles/library/.
+
+test_that("mlClassificationSvm results match", {
+
+ # Load from JASP example file
+ jaspFile <- testthat::test_path("jaspfiles", "library", "spiral.jasp")
+ opts <- jaspTools::analysisOptions(jaspFile)
+ dataset <- jaspTools::extractDatasetFromJASPFile(jaspFile)
+
+ # Encode and run analysis
+ encoded <- jaspTools:::encodeOptionsAndDataset(opts, dataset)
+ set.seed(1)
+ results <- jaspTools::runAnalysis("mlClassificationSvm", encoded$dataset, encoded$options, encodedDataset = TRUE)
+
+ table <- results[["results"]][["classificationTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(1, 40, 160, 0.8, 124))
+
+ table <- results[["results"]][["confusionTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list("Observed", "Black", 13, 3, "", "Red", 5, 19))
+
+ plotName <- results[["results"]][["decisionBoundary"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-1_decision-boundary-matrix")
+
+ plotName <- results[["results"]][["plotDataSplit"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-2_data-split")
+
+ table <- results[["results"]][["validationMeasures"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(0.8, 0.802083333333333, 0.764705882352941, 0.277777777777778,
+ 0.1875, 0.136363636363636, 0.208333333333333, "Black", 0.594942206400108,
+ 0.863636363636364, 0.722222222222222, 0.8125, 0.45, 16, 0.791666666666667,
+ 1, 0.8, 0.802083333333333, 0.826086956521739, 0.136363636363636,
+ 0.208333333333333, 0.277777777777778, 0.1875, "Red", 0.594942206400108,
+ 0.722222222222222, 0.863636363636364, 0.791666666666667, 0.55,
+ 24, 0.8125, 1.72727272727273, 0.8, 0.802083333333333, 0.80153452685422,
+ 0.207070707070707, 0.197916666666667, 0.207070707070707, 0.197916666666667,
+ "Average / Total", 0.594942206400108, 0.792929292929293, 0.807070707070707,
+ 0.8, 1, 40, 0.802083333333333, 1.36363636363636))
+
+})
+
diff --git a/tests/testthat/test-library-studentGrades.R b/tests/testthat/test-library-studentGrades.R
new file mode 100644
index 00000000..6416f2a1
--- /dev/null
+++ b/tests/testthat/test-library-studentGrades.R
@@ -0,0 +1,32 @@
+context("Library: studentGrades")
+
+# This test file was auto-generated from a JASP example file.
+# The JASP file is stored in tests/testthat/jaspfiles/library/.
+
+test_that("mlRegressionBoosting results match", {
+
+ # Load from JASP example file
+ jaspFile <- testthat::test_path("jaspfiles", "library", "studentGrades.jasp")
+ opts <- jaspTools::analysisOptions(jaspFile)
+ dataset <- jaspTools::extractDatasetFromJASPFile(jaspFile)
+
+ # Encode and run analysis
+ encoded <- jaspTools:::encodeOptionsAndDataset(opts, dataset)
+ set.seed(1)
+ results <- jaspTools::runAnalysis("mlRegressionBoosting", encoded$dataset, encoded$options, encodedDataset = TRUE)
+
+ plotName <- results[["results"]][["plotDataSplit"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-1_data-split")
+
+ plotName <- results[["results"]][["predictedPerformancePlot"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-2_predictive-performance-plot")
+
+ table <- results[["results"]][["regressionTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list("Gaussian", 79, 252, 64, 0.1, 16.172076265739, 19, 21.0925224543305
+ ))
+
+})
+
diff --git a/tests/testthat/test-library-telcoCustomerChurn.R b/tests/testthat/test-library-telcoCustomerChurn.R
new file mode 100644
index 00000000..5f501e78
--- /dev/null
+++ b/tests/testthat/test-library-telcoCustomerChurn.R
@@ -0,0 +1,22 @@
+context("Library: telcoCustomerChurn")
+
+# This test file was auto-generated from a JASP example file.
+# The JASP file is stored in tests/testthat/jaspfiles/library/.
+
+test_that("mlClassificationKnn results match", {
+
+ # Load from JASP example file
+ jaspFile <- testthat::test_path("jaspfiles", "library", "telcoCustomerChurn.jasp")
+ opts <- jaspTools::analysisOptions(jaspFile)
+ dataset <- jaspTools::extractDatasetFromJASPFile(jaspFile)
+
+ # Encode and run analysis
+ encoded <- jaspTools:::encodeOptionsAndDataset(opts, dataset)
+ set.seed(1)
+ results <- jaspTools::runAnalysis("mlClassificationKnn", encoded$dataset, encoded$options, encodedDataset = TRUE)
+
+ # Basic check - analysis runs without error
+ expect_false(isTRUE(results[["status"]] == "error"),
+ info = results[["results"]][["error"]])
+})
+
diff --git a/tests/testthat/test-library-wine.R b/tests/testthat/test-library-wine.R
new file mode 100644
index 00000000..5f4fb6a3
--- /dev/null
+++ b/tests/testthat/test-library-wine.R
@@ -0,0 +1,48 @@
+context("Library: wine")
+
+# This test file was auto-generated from a JASP example file.
+# The JASP file is stored in tests/testthat/jaspfiles/library/.
+
+test_that("mlClusteringRandomForest results match", {
+
+ # Load from JASP example file
+ jaspFile <- testthat::test_path("jaspfiles", "library", "wine.jasp")
+ opts <- jaspTools::analysisOptions(jaspFile)
+ dataset <- jaspTools::extractDatasetFromJASPFile(jaspFile)
+
+ # Encode and run analysis
+ encoded <- jaspTools:::encodeOptionsAndDataset(opts, dataset)
+ set.seed(1)
+ results <- jaspTools::runAnalysis("mlClusteringRandomForest", encoded$dataset, encoded$options, encodedDataset = TRUE)
+
+ table <- results[["results"]][["clusterInfoTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(1, 0.199425939703478, 0.411069251367668, 57, 267.166873258102,
+ 2, 0.612907360221033, 0.0747428309831974, 76, 821.0995183004,
+ 3, 0.187666700075488, 0.39282044191035, 45, 251.413259219857
+ ))
+
+ table <- results[["results"]][["clusteringTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(0.26, 1417.68, 1541.77, 3, 0.417783724129353, 178))
+
+ table <- results[["results"]][["importanceTable"]][["data"]]
+ jaspTools::expect_equal_tables(table,
+ list(20.3865617163522, "jaspColumn7", 16.7221375429735, "jaspColumn12",
+ 16.5937155443686, "jaspColumn6", 15.1922351110861, "jaspColumn13",
+ 14.7701748175345, "jaspColumn10", 13.763257093803, "jaspColumn9",
+ 13.6109822805815, "jaspColumn11", 13.4924520858126, "jaspColumn1",
+ 12.0407649461782, "jaspColumn2", 10.9165824200026, "jaspColumn4",
+ 10.6695338188, "jaspColumn8", 9.6982366053581, "jaspColumn5",
+ 9.64091096096958, "jaspColumn3"))
+
+ plotName <- results[["results"]][["optimPlot"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-1_elbow-method-plot")
+
+ plotName <- results[["results"]][["plot2dCluster"]][["data"]]
+ testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]]
+ jaspTools::expect_equal_plots(testPlot, "analysis-1_figure-2_t-sne-cluster-plot")
+
+})
+