dot-addMissingGroupings: Replace missing groupings with dataset names

.addMissingGroupingsR Documentation

Replace missing groupings with dataset names

Description

Datasets which haven't been assigned to any group will be plotted as a group on its own. That is, the group column entries for them will be their names.

Usage

.addMissingGroupings(data)

Arguments

data

A data frame returned by DataCombined$toDataFrame().

See Also

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

Examples


df <- dplyr::tibble(
  group = c(
    "Stevens 2012 solid total",
    "Stevens 2012 solid total",
    NA,
    NA,
    NA
  ),
  name = c(
    "Organism|Lumen|Stomach|Metformin|Gastric retention",
    "Stevens_2012_placebo.Placebo_total",
    "Stevens_2012_placebo.Sita_dist",
    "Stevens_2012_placebo.Sita_proximal",
    "Stevens_2012_placebo.Sita_total"
  ),
  dataType = c(
    "simulated",
    "observed",
    "observed",
    "observed",
    "observed"
  )
)

# original
df

# transformed
ospsuite:::.addMissingGroupings(df)


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