-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
43 lines (32 loc) · 1.01 KB
/
README.Rmd
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
---
title: "R package: pharmavis"
author: "Sungpil Han"
---
# Introduction
```{r setup, include = FALSE}
knitr::opts_chunk$set(message = FALSE, warning = FALSE, error = TRUE)
```
Installation can be done by running the script below.
```{r installation}
# devtools::install_github('asancpt/pharmavis')
library(pharmavis)
```
Here are some examples.
```{r}
plot_nca(concData = Theoph, colSubj = "Subject", colTime = "Time", colConc = "conc")
plot_nca(concData = Indometh, colSubj = "Subject", colTime = "time", colConc = "conc")
```
## Future references
여기서 예제를 올리고 이를 응용해서 PK plot을 그려 나갈 예정입니다.
```{r}
ggplot2::qplot(x=Time, y=Conc, group=ID, color = Race,
data=PKPDdatasets::sd_oral_richpk,
log = 'y',
geom=c('line', 'point'))
```
```{r}
ggplot2::qplot(x=Time, y=Conc, group=ID, color = Race,
data=PKPDdatasets::sd_oral_richpk,
facets = Race ~ Gender,
geom=c('line', 'point'))
```