Skip to content

Commit

Permalink
Fixes #878 yAxis normalization of residuals distribution (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
pchelle authored Oct 20, 2022
1 parent 5998747 commit e1989c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/gof-plot-task.R
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ GofPlotTask <- R6::R6Class(
x = "Residuals",
fill = "Legend",
stack = TRUE,
distribution = "normal"
distribution = "normal",
frequency = TRUE
),
plotConfiguration = settings$plotConfigurations[["histogram"]],
bins = settings$bins %||% reEnv$defaultBins
Expand Down
2 changes: 1 addition & 1 deletion R/reportingengine-env.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ reEnv$defaultPlotFormat <- list(
reEnv$fontScaleFactor <- 2

reEnv$workflowWatermarkMessage <- "preliminary analysis"
reEnv$residualsHistogramLabel <- "Number of residuals"
reEnv$residualsHistogramLabel <- "Relative frequency"
reEnv$residualsQQLabel <- "Quantiles of residuals"

# Default values for qualification pk ratio
Expand Down
3 changes: 2 additions & 1 deletion R/utilities-goodness-of-fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,8 @@ getResidualsPlotResults <- function(timeRange, residualsData, metaDataFrame, str
x = "Residuals",
fill = "Legend",
stack = TRUE,
distribution = "normal"
distribution = "normal",
frequency = TRUE
),
plotConfiguration = settings$plotConfigurations[["resHisto"]],
bins = settings$bins %||% reEnv$defaultBins
Expand Down

0 comments on commit e1989c4

Please sign in to comment.