get_response_plot {PMAPscore} | R Documentation |
Plot the response column diagram
Description
The function 'get_response_plot' uses to plot the column diagram of drug response.
Usage
get_response_plot(km_data, response, cut_point, TRAIN = TRUE)
Arguments
km_data |
A data frame, including survival status, survival time, and risk score of each sample. The data frame can be generated by the function 'get_risk_score'. |
response |
Response status of the sample to the drug. |
cut_point |
The threshold uses to classify patients into two subgroups with different OS. |
TRAIN |
Logical,if set to TRUE,the 'cut_point' is generated by the median of the risk score; Otherwise,'cut_point' can be customized. |
Value
Comparison of the objective response rate between the high-risk and low-risk groups, plot the bar graph and return the p value.
Examples
#Load the data.
data(km_data,response)
#perform the function `get_response_plot`.
get_response_plot(km_data,response,cut_point,TRAIN=TRUE)
[Package PMAPscore version 0.1.1 Index]