diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 27bd9cec..ad412cc2 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -231,3 +231,13 @@ After `runAnalysis()`, check: - Use `createJaspTable()`, `createJaspPlot()`, `createJaspHtml()` for output elements - Always set `$dependOn()` for proper caching and state management - Use containers for grouping related elements, state objects for reusing computed results + +## Compact Instructions + +When context is compacted, preserve: +- Current workflow stage (from /workspace/.openclaw-run/current_stage) +- Implementation plan (from /workspace/.openclaw-run/PLAN.md) +- The module name and original task description +- What git changes have been made so far + +After compaction, re-read /workspace/.openclaw-run/RECOVERY.md to re-orient. diff --git a/R/doeAnalysis.R b/R/doeAnalysis.R index bf0d06f1..9a2e49a5 100644 --- a/R/doeAnalysis.R +++ b/R/doeAnalysis.R @@ -1858,9 +1858,9 @@ get_levels <- function(var, num_levels, dataset) { plot <- createJaspPlot(title = plotTitle, width = 500, height = 500) result <- jaspResults[[dep]][["doeResult"]]$object[["regression"]] if (plotType == "contourPlot") { - plot$plotObject <- function(){.doeContourSurfacePlotObject(result, options, dependent, variablePair, type = "contour")} + plot$plotObject <- function(){.doeContourSurfacePlotObject(result, options, dep, variablePair, type = "contour")} } else if (plotType == "surfacePlot") { - plot$plotObject <- function(){.doeContourSurfacePlotObject(result, options, dependent, variablePair, type = "surface")} + plot$plotObject <- function(){.doeContourSurfacePlotObject(result, options, dep, variablePair, type = "surface")} } jaspResults[[dep]][["contourSurfacePlot"]][[plotTitle]] <- plot } diff --git a/tests/testthat/_snaps/example-Type1InstrumentCapability/analysis-1-figure-1-bias-histogram.new.svg b/tests/testthat/_snaps/example-Type1InstrumentCapability/analysis-1-figure-1-bias-histogram.new.svg new file mode 100644 index 00000000..0b696f60 --- /dev/null +++ b/tests/testthat/_snaps/example-Type1InstrumentCapability/analysis-1-figure-1-bias-histogram.new.svg @@ -0,0 +1,253 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +5 +10 +15 + + + + + + + + + + + +-5.5 +-5.0 +-4.5 +-4.0 +-3.5 +-3.0 +jaspColumn1 +Count + + + + + + + + + + + + + + +Mean +Mean - 3s +Mean + 3s +Reference +Ref. - 0.10 * tol. +Ref. + 0.10 * tol. +analysis-1_figure-1_bias-histogram + + diff --git a/tests/testthat/_snaps/msaType1Gauge/1-bias-histogram.new.svg b/tests/testthat/_snaps/msaType1Gauge/1-bias-histogram.new.svg new file mode 100644 index 00000000..f28037c6 --- /dev/null +++ b/tests/testthat/_snaps/msaType1Gauge/1-bias-histogram.new.svg @@ -0,0 +1,253 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +5 +10 +15 + + + + + + + + + + + +-5.5 +-5.0 +-4.5 +-4.0 +-3.5 +-3.0 +dm +Count + + + + + + + + + + + + + + +Mean +Mean - 3s +Mean + 3s +Reference +Ref. - 0.10 * tol. +Ref. + 0.10 * tol. +1_bias-histogram + + diff --git a/tests/testthat/_snaps/msaType1Gauge/2-bias-histogram.new.svg b/tests/testthat/_snaps/msaType1Gauge/2-bias-histogram.new.svg new file mode 100644 index 00000000..0e215eaf --- /dev/null +++ b/tests/testthat/_snaps/msaType1Gauge/2-bias-histogram.new.svg @@ -0,0 +1,247 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +5 +10 +15 + + + + + + + + + + +-5.0 +-4.5 +-4.0 +-3.5 +-3.0 +dm +Count + + + + + + + + + + + + + + +Mean +Mean - 2s +Mean + 2s +Reference +Ref. - 0.07 * tol. +Ref. + 0.07 * tol. +2_bias-histogram + + diff --git a/tests/testthat/_snaps/msaType1Gauge/3-bias-histogram.new.svg b/tests/testthat/_snaps/msaType1Gauge/3-bias-histogram.new.svg new file mode 100644 index 00000000..e07d4ebb --- /dev/null +++ b/tests/testthat/_snaps/msaType1Gauge/3-bias-histogram.new.svg @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +5 +10 + + + + + + + + + + +-5.5 +-5.0 +-4.5 +-4.0 +-3.5 +-3.0 +dmMissing1 +Count + + + + + + + + + + + + + + +Mean +Mean - 3s +Mean + 3s +Reference +Ref. - 0.10 * tol. +Ref. + 0.10 * tol. +3_bias-histogram + + diff --git a/tests/testthat/_snaps/msaType1Gauge/4-bias-histogram.new.svg b/tests/testthat/_snaps/msaType1Gauge/4-bias-histogram.new.svg new file mode 100644 index 00000000..3c9b9602 --- /dev/null +++ b/tests/testthat/_snaps/msaType1Gauge/4-bias-histogram.new.svg @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +5 +10 + + + + + + + + + + +-4.6 +-4.4 +-4.2 +-4.0 +-3.8 +-3.6 +dmMissing25 +Count + + + + + + + + + + + + + + +Mean +Mean - 3s +Mean + 3s +Reference +Ref. - 0.10 * tol. +Ref. + 0.10 * tol. +4_bias-histogram + +