plotRC: plot the relative change of data

Description Usage Arguments Examples

View source: R/DRAP_code_1.5.11.r

Description

plot the relative change of tumor volume data or body weight data.

Usage

1
plotRC(data, type, pattern, rm.baseline = TRUE, orders = NULL, ...)

Arguments

data

a data frame of measured tumor volume data or body weight data.

type

the type of data, "Vomule" or "BodyWeight".

pattern

the pattern of PDX trial design, "oneAN" or "TAN".

rm.baseline

a logical parameter, whether remove the baseline.

orders

the redefined order for visulization. For oneAN pattern,the order is redifined orders of the 'Arms'; for TAN pattern, the order is redifined orders of the 'Tumor'.

...

other parameters passed to ggplot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
### oneAN pattern
data(oneAN.volume.data)
plotRC(data = oneAN.volume.data,type = 'Volume',pattern = 'oneAN')

data(oneAN.bw.data)
plotRC(data = oneAN.bw.data,type = 'BodyWeight',pattern = 'oneAN')


### TAN pattern
data(TAN.volume.data)
plotRC(data = TAN.volume.data,type = 'Volume',pattern = 'TAN')

data(TAN.bw.data)
plotRC(data = TAN.bw.data,type = 'BodyWeight',pattern = 'TAN')

SCBIT-YYLab/DRAP documentation built on April 7, 2020, 2:03 a.m.