From 97a6e236a2bd602079d85bddd1d07202ba38478a Mon Sep 17 00:00:00 2001 From: sisyphus-jasp Date: Mon, 23 Feb 2026 23:47:12 +0100 Subject: [PATCH] [jaspLearnStats] Fix issue #3107: Change default value of delta from 0 to 0.5 in Lea... --- R/LSeffectSizes.R | 12 ++++++------ inst/qml/LSeffectSizes.qml | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/R/LSeffectSizes.R b/R/LSeffectSizes.R index 66b11bb..259fc76 100644 --- a/R/LSeffectSizes.R +++ b/R/LSeffectSizes.R @@ -1127,8 +1127,8 @@ switchOptions <- function(options) { } plot <- ggplot2::ggplot(data = data) + - ggplot2::scale_x_continuous(name = "", breaks = ticks, limits = range(ticks)) + - ggplot2::scale_y_continuous(name = "", breaks = ticks, limits = range(ticks)) + + ggplot2::scale_x_continuous(name = "", breaks = scales::pretty_breaks(n = 3)) + + ggplot2::scale_y_continuous(name = "", breaks = scales::pretty_breaks(n = 3)) + ggplot2::geom_rect( mapping = ggplot2::aes( xmin = x_start, @@ -1188,8 +1188,8 @@ switchOptions <- function(options) { } plot <- ggplot2::ggplot(data = data) + - ggplot2::scale_x_continuous(name = "", breaks = ticks, limits = range(ticks)) + - ggplot2::scale_y_continuous(name = "", breaks = ticks, limits = range(ticks)) + + ggplot2::scale_x_continuous(name = "", breaks = scales::pretty_breaks(n = 3)) + + ggplot2::scale_y_continuous(name = "", breaks = scales::pretty_breaks(n = 3)) + ggplot2::geom_rect( mapping = ggplot2::aes( xmin = x_start, @@ -1255,8 +1255,8 @@ switchOptions <- function(options) { } plot <- ggplot2::ggplot() + - ggplot2::scale_x_continuous(name = "", breaks = ticks, limits = range(ticks)) + - ggplot2::scale_y_continuous(name = "", breaks = ticks, limits = range(ticks)) + + ggplot2::scale_x_continuous(name = "", breaks = scales::pretty_breaks(n = 3)) + + ggplot2::scale_y_continuous(name = "", breaks = scales::pretty_breaks(n = 3)) + ggplot2::geom_rect( data = dataS, mapping = ggplot2::aes( diff --git a/inst/qml/LSeffectSizes.qml b/inst/qml/LSeffectSizes.qml index 84489a0..77a904e 100644 --- a/inst/qml/LSeffectSizes.qml +++ b/inst/qml/LSeffectSizes.qml @@ -62,7 +62,7 @@ Form { name: "effectSizeValueDelta" label: "δ" visible: !inputPopulation.checked - defaultValue: 0 + defaultValue: 0.5 } DoubleField @@ -91,13 +91,13 @@ Form { Group { visible: effectSize.value == "rho" - + DoubleField { - + name: "effectSizeValueRho" label: "ρ" - defaultValue: 0 + defaultValue: 0.5 min: -1 max: 1 } @@ -142,7 +142,7 @@ Form { name: "effectSizeValuePhi" visible: !inputPopulation.checked label: "φ" - defaultValue: 0 + defaultValue: 0.5 min: -1 max: 1 }