-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.qmd
72 lines (41 loc) · 1.01 KB
/
template.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: "template"
subtitle: ""
author: "test"
institute: "ESQlabs"
# date:
---
# Introduction
# Preparation
## Librairies
```{r}
library(ospsuite)
```
## Data
### Import
```{r}
obsData <- ospsuite::loadDataSetFromPKML(system.file("extdata", "ObsDataAciclovir_1.pkml", package = "ospsuite"))
```
### Clean
### Save
# Simulations
```{r}
aciclovir_model <- loadSimulation(system.file("extdata", "Aciclovir.pkml", package = "ospsuite"))
simulations <- runSimulations(list(aciclovir_sim = aciclovir_model))
```
# Visualisation
## DataCombined
```{r}
aciclovir_data <- DataCombined$new()
aciclovir_data$addDataSets(obsData,names = "Observed", groups = "aciclovir")
aciclovir_data$addSimulationResults(simulations[[1]], names = "Simulated", groups = "aciclovir")
```
## Plots
### Time profile
```{r}
timeprofile_conf <- DefaultPlotConfiguration$new()
timeprofile_conf$title <- "Aciclovir Concentration Time Profile in Plasma (Peripheral Venous Blood)"
```
```{r}
plotIndividualTimeProfile(aciclovir_data)
```