Replies: 2 comments 1 reply
-
Following discussion on 01.09. Separate data grouping from potting. The most annoying and time consuming part in setting up the figures is is definition of what data to use and how these are mapped (e.g. observed data with simulation results). Therefore, I propose the class Class fields
Methods/functions for:
For each
Such a
Each function an also optionally receive a configuration object, having different configurations for different types of plots. Each plot-function can also create a default configuration if none is provided. The workflow would be:
|
Beta Was this translation helpful? Give feedback.
-
@msevestre Did you reach out to @abdelr and @abdullahhamadeh to schedule a meeting? |
Beta Was this translation helpful? Give feedback.
-
Now that we have the
DataSet
class, it is time to implement a concept of creating some figures usingDataSet
and simulated results (#229). The proposed idea is to have a class that will group multiple data sets and serve as a convenient interface to the TLF library.For now, I will name the proposed class
Plot
. The workflow would be:Plot
objectDataSet
or from simulation resultsPlot
object. In this case,Plot
could have a propertyplotType
(e.g. "individualTimeProfile", "populationQuantiles", "BoxPlot", "PredictedVsObserved"), and a methodPlot$plot()
that executes the specified plotplotIndividualProfile(plot, configuration)
,plotBoxPlot(plot, configuration
etc.$plot()
method of the class)Internally, calling the method
$plot()
(or one of theplotXXX
-functions) would create a data frame for all data sets (including conversion between units etc), populating the meta data, and pass it to TLF.Class fields
DataSet
objects will be transformed to the selected unit.Methods/functions for:
DataSet
objectsDataSet
from for the given pathsFor each
DataSet
in thePlot
object, following properties are assigned (and can be changed by the user):Required plot types
@msevestre @abdullahhamadeh @pchelle Would be happy to discuss it with you.
Beta Was this translation helpful? Give feedback.
All reactions