plotGR: visulize the growth rate of tumor volume

Description Usage Arguments Examples

View source: R/DRAP_code_1.5.11.r

Description

visulize the growth rate of tumor volume.

Usage

1
plotGR(data, pattern, orders = NULL, type = c('barplot','boxplot'), ...)

Arguments

data

a data frame of measured tumor volume data.

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

type

the type to visulize, "barplot" or "boxplot".

...

other parameters passed to ggplot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
### oneAN pattern
data(oneAN.volume.data)
plotGR(oneAN.volume.data,type = 'boxplot',pattern = 'oneAN')
plotGR(oneAN.volume.data,type = 'barplot',pattern = 'oneAN')


### TAN pattern
data(TAN.volume.data)
plotGR(TAN.volume.data,pattern = 'TAN',type = 'barplot')
plotGR(TAN.volume.data,pattern = 'TAN',type = 'boxplot')

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