Open PavelBal opened 1 year ago
Same for plotResidualsVsSimulated(myCombDat)
, plotResidualsVsTime(myCombDat)
.
The message is wrong because the listed data sets are not specified to be grouped.
The message should be
"This type of plot requires at least one group with simulated and observed results in the DataCombined
object." or something like this.
The same for when a grouping is defined, but consists of only simulated or only observed data:
dataSet <- DataSet$new(name = "SimData")
dataSet$setValues(0, 1)
myDC <- DataCombined$new()
myDC$addDataSets(dataSet, groups = "Group")
plotObservedVsSimulated(myDC)
> plotObservedVsSimulated(myDC)
Following datasets were specified to be grouped but not found:
SimData
NULL
Warning message:
In calculateResiduals(dataCombined, scaling = obsVsPredPlotConfiguration$yAxis$scale, :
No residuals can be computed because the entered `DataCombined` object does not contain any observed-simulated datasets that can be paired.
Trying to plot a data mapping with data sets but no groupings (calling the code from the "tests/testthat" folder of the package):