plotDRResults: plot the results of drug response level analysis.

Description Usage Arguments Examples

View source: R/DRAP_code_1.5.11.r

Description

Visulize the result of drug response analysis, such as RR or DCR of each arm.

Usage

1
plotDRResults(data, by, min.number, measurement = c('RR','DCR','both'), ...)

Arguments

data

drug response level ,the output of DRLevel.

by

the level summaried by.

min.number

the lower cutoff of sample number of every arm

measurement

the response evaluation indexes used, whether "RR", "DCR", or "both".

...

other parameters passed to ggplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# NPDXE.criteria 
npdxe.criteria <- data.frame(BestResponse.lower = c(-1000,-0.95,-0.5,0.35),
                             BestResponse.upper = c(-0.95,-0.5,0.35,1000),
                             BestAvgResponse.lower = c(-1000,-0.4,-0.2,0.3), 
                             BestAvgResponse.upper = c(-0.4,-0.2,0.3,1000), 
                             Level = c( 'CR','PR', 'SD','PD'))
npdxe.criteria

data(TAN.volume.data)
TAN.drl <- DRLevel(data = TAN.volume.data, 
                   method = 'NPDXE.Response', 
                   criteria = npdxe.criteria, 
                   neg.control = 'Control')
plotDRResults(TAN.drl,by = 'Arms',measurement = 'DCR',min.number = 5)

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