Skip to content

Commit

Permalink
Fixes #1248 DDI plots are quadratic (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
pchelle authored Jul 25, 2024
1 parent 0c7c1f4 commit e0a1b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utilities-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ getPlotConfigurationFromPlan <- function(plotProperties, plotType = NULL, legend
validateIsIncluded(values = legendPosition, parentValues = tlf::LegendPositions, nullAllowed = TRUE)
plotConfiguration$legend$position <- legendPosition %||% reEnv$theme$background$legendPosition

# Quadratic dimensions for ObsVsPred plot type
# Quadratic dimensions for ObsVsPred, DDIRatio plot type
# Note that other plots be could included in default quadratic plots
defaultWidth <- reEnv$defaultPlotFormat$width
defaultHeight <- reEnv$defaultPlotFormat$height
if (isIncluded(plotType, "ObsVsPred")) {
if (isIncluded(plotType, c("ObsVsPred", "DDIRatio"))) {
defaultWidth <- mean(c(defaultWidth, defaultHeight))
defaultHeight <- defaultWidth
}
Expand Down

0 comments on commit e0a1b2f

Please sign in to comment.