View source: R/get_response_plot.R
get_response_plot | R Documentation |
The function 'get_response_plot' uses to plot the column diagram of drug response.
get_response_plot(km_data, response, cut_point, TRAIN = TRUE)
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. |
Comparison of the objective response rate between the high-risk and low-risk groups, plot the bar graph and return the p value.
#Load the data. data(km_data,response) #perform the function `get_response_plot`. get_response_plot(km_data,response,cut_point,TRAIN=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.