Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotPopulationTimeProfile range color does not match line color if multiple results are assigned to the same group #1064

Closed
PavelBal opened this issue Aug 9, 2022 · 3 comments · Fixed by #1054
Labels
prio: high type: bug Something isn't working

Comments

@PavelBal
Copy link
Member

PavelBal commented Aug 9, 2022

Both shaded areas should have the color of the line (blue). They will not be distinguishable, but that's fine.

simFilePath <- system.file("extdata", "Aciclovir.pkml", package = "ospsuite")
sim <- loadSimulation(simFilePath)

outputPath <- c("Organism|PeripheralVenousBlood|Aciclovir|Plasma (Peripheral Venous Blood)",
                "Organism|Muscle|Intracellular|Aciclovir|Concentration")

simResults <- importResultsFromCSV(simulation = sim, filePaths = system.file("extdata", "SimResults_pop.csv", package = "ospsuite"))

obsData <- lapply(c("ObsDataAciclovir_1.pkml", "ObsDataAciclovir_3.pkml"),
                  \(x){loadDataSetFromPKML(system.file("extdata", x, package = "ospsuite"))})

names(obsData) <- lapply(obsData, \(x){x$name})


myDataCombined <- DataCombined$new()
# Add simulated results
myDataCombined$addSimulationResults(simulationResults = simResults,
                                    quantitiesOrPaths = outputPaths,
                                    groups = "Aciclovir PVB")

plotPopulationTimeProfile(myDataCombined)

image

@PavelBal PavelBal added type: bug Something isn't working prio: high labels Aug 9, 2022
@IndrajeetPatil

This comment was marked as outdated.

@IndrajeetPatil IndrajeetPatil changed the title plotPopulationTimeProfile range are color does not match line color if multiple results are assigned to the same group plotPopulationTimeProfile range color does not match line color if multiple results are assigned to the same group Aug 9, 2022
@IndrajeetPatil

This comment was marked as outdated.

@IndrajeetPatil
Copy link
Member

This should be fixed in #1054

library(ospsuite)
#> Loading required package: rClr
#> Loading the dynamic library for Microsoft .NET runtime...
#> Loaded Common Language Runtime version 4.0.30319.42000

simFilePath <- system.file("extdata", "Aciclovir.pkml", package = "ospsuite")
sim <- loadSimulation(simFilePath)

outputPaths <- c(
  "Organism|PeripheralVenousBlood|Aciclovir|Plasma (Peripheral Venous Blood)",
  "Organism|Muscle|Intracellular|Aciclovir|Concentration"
)

simResults <- importResultsFromCSV(
  simulation = sim,
  filePaths = system.file("extdata", "SimResults_pop.csv", package = "ospsuite")
)

myDataCombined <- DataCombined$new()

myDataCombined$addSimulationResults(
  simulationResults = simResults,
  quantitiesOrPaths = outputPaths,
  groups = "Aciclovir PVB"
)

plotPopulationTimeProfile(myDataCombined)

Created on 2022-08-10 by the reprex package (v2.0.1.9000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio: high type: bug Something isn't working
Projects
None yet
2 participants