dot-convertGeneralToSpecificPlotConfiguration: Create plot-specific 'tlf::PlotConfiguration' object

.convertGeneralToSpecificPlotConfigurationR Documentation

Create plot-specific tlf::PlotConfiguration object

Description

Create plot-specific tlf::PlotConfiguration object

Usage

.convertGeneralToSpecificPlotConfiguration(
  specificPlotConfiguration,
  generalPlotConfiguration
)

Arguments

specificPlotConfiguration

A specific subclass of tlf::PlotConfiguration needed for the given plot.

generalPlotConfiguration

A DefaultPlotConfiguration object.

Details

The default plot configuration and the labels needs to vary from plot-to-plot because each plot has its specific (default) aesthetic needs that need to be met.

For example, although the axes labels for profile plots will be (e.g.) "Time vs Fraction", they will be (e.g.) "Observed vs simulated values" for scatter plots. Additionally, mapping group to line colors might be desirable for a profile plot, it is not so for scatter plots.

This function generates object of specific subclass of tlf::PlotConfiguration needed for the given plot but with suitable defaults taken from the DefaultPlotConfiguration object.

See Also

Other utilities-plotting: .addMissingGroupings(), .createAxesLabels(), .extractAggregatedSimulatedData()

Examples


ospsuite:::.convertGeneralToSpecificPlotConfiguration(
  tlf::TimeProfilePlotConfiguration$new(),
  ospsuite::DefaultPlotConfiguration$new()
)


Open-Systems-Pharmacology/OSPSuite-R documentation built on April 28, 2024, 2:24 a.m.