plotBWeightGC: Plot growth curves for body weight of mouses

Description Usage Arguments Examples

View source: R/DRAP_code_1.5.11.r

Description

Plot growth curves for body weight of mouses.

Usage

1
2
3
plotBWeightGC(data, level = c('Animal','Arm'), 
              pattern = c("OneAN", "TAN"), 
              orders = NULL, position.dodge, ...)

Arguments

data

a data frame of measured body weight data of mouse.

level

the level to present, "Animal" level or "Arm" level.

pattern

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

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'.

position.dodge

Dodging preserves the vertical position of an geom while adjusting the horizontal position.

...

other parameters passed to ggplot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
### oneAN pattern
data(oneAN.bw.data)
plotBWeightGC(data = oneAN.bw.data,level = 'Animal',
              pattern = 'oneAN')
plotBWeightGC(data = oneAN.bw.data,level = 'Arm',
              pattern = 'oneAN',position.dodge = 0.5)


### TAN pattern
data(TAN.bw.data) 
plotBWeightGC(data = TAN.bw.data,level = 'Animal',
              pattern = 'TAN')
plotBWeightGC(data = TAN.bw.data,level = 'Arm',
              pattern = 'TAN',position.dodge = 0.5)

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