Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from esqLABS/develop
Browse files Browse the repository at this point in the history
Merge develop into main for release 3.0.2
  • Loading branch information
PavelBal committed Jan 31, 2023
2 parents 227fc9e + f70cc45 commit 0a9f53c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: esqlabsRLegacy
Title: esqLABS utilities package legacy functions
Version: 3.0.1
Version: 3.0.2
Authors@R:
c(person("esqLABS GmbH", role = c("cph", "fnd")),
person("Pavel", "Balazki", role = c("cre", "aut"), email = "pavel.balazki@esqlabs.com"),
Expand Down Expand Up @@ -30,4 +30,4 @@ Config/testthat/edition: 3
Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.1
RoxygenNote: 7.2.2
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# esqlabsRLegacy 3.0.2

Predicted vs observed plots respect the colors of simulated results.

----

# esqlabsRLegacy 3.0.1

Fixes unit conversion error when trying to plot data with geometric standard
Expand Down
6 changes: 6 additions & 0 deletions R/utilities-data-mapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,12 @@ plotPredictedVsObserved <- function(dataMapping, foldDistance = 2, timeDiffThres
# Apply scaling to simulated results
simulatedPointsX <- simulatedResult$xValuesProcessed(dataMapping$xUnit)
simulatedPointsY <- simulatedResult$yValuesProcessed(dataMapping$yUnit)

# Setting the color to the color defined for the simulation result.
if (!is.null(simulatedResult$color)) {
colors[[graphicsParIdx]] <- simulatedResult$color
}

# Iterate through each observed data point and find the simulated value
# with the closest x-value.
for (i in seq_along(dataPointsX)) {
Expand Down

0 comments on commit 0a9f53c

Please sign in to comment.