Skip to content

Commit

Permalink
error bars for observed data in population profile
Browse files Browse the repository at this point in the history
Closes #1059
  • Loading branch information
IndrajeetPatil committed Aug 2, 2022
1 parent 75d8ee3 commit a6f6df7
Show file tree
Hide file tree
Showing 5 changed files with 248 additions and 12 deletions.
5 changes: 3 additions & 2 deletions R/plot-individual-time-profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ plotIndividualTimeProfile <- function(dataCombined,
hasMultipleObsDatasetsPerGroup <- FALSE
} else {
hasMultipleObsDatasetsPerGroup <- .hasMultipleDatasetsPerGroup(obsData)
obsData <- .computeBoundsFromErrorType(obsData)
}

simData <- as.data.frame(dplyr::filter(combinedData, dataType == "simulated"))
Expand Down Expand Up @@ -116,6 +117,8 @@ plotIndividualTimeProfile <- function(dataCombined,
observedDataMapping <- tlf::ObservedDataMapping$new(
x = "xValues",
y = "yValues",
ymin = "yValuesLower",
ymax = "yValuesHigher",
group = "group"
)
}
Expand All @@ -124,8 +127,6 @@ plotIndividualTimeProfile <- function(dataCombined,
# individual time profile mappings ------------------------------

if (is.null(quantiles)) {
obsData <- .computeBoundsFromErrorType(obsData)

if (hasMultipleSimDatasetsPerGroup) {
simulatedDataMapping <- tlf::TimeProfileDataMapping$new(
x = "xValues",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a6f6df7

Please sign in to comment.