plotTGI: TGI visulizing

Description Usage Arguments Examples

View source: R/DRAP_code_1.5.11.r

Description

Visulize TGI of each Arms.

Usage

1
plotTGI(data, pattern, scope = c('end.point','all.point'),orders=NULL, ...)

Arguments

data

the output of function TGI.

pattern

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

scope

the scope of time point to visulize, whether "end,point" or "all.point".

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
### oneAN pattern
data(oneAN.volume.data)
oneAN.tgi <- TGI(data = oneAN.volume.data,neg.control = 'Control',method = 'AUC',pattern = 'oneAN')
plotTGI(oneAN.tgi,pattern = 'oneAN',scope = 'end.point')
plotTGI(oneAN.tgi,pattern = 'oneAN',scope = 'all.point')


### TAN pattern
data(TAN.volume.data)
TAN.tgi <- TGI(TAN.volume.data,  neg.control = 'Control',pattern = 'TAN',method = 'AUC')
plotTGI(TAN.tgi,pattern = 'TAN',scope = 'end.point')
plotTGI(TAN.tgi,pattern = 'TAN',scope = 'all.point')

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