Description Usage Arguments Value Examples
View source: R/waterfall_plot.R
waterfall plot Creates waterfall plot for a given drug.
1 2 3 4 |
object |
The |
res.measure |
PDX model drug response measure |
drug |
Name of the drug |
group.by |
Group drug response data |
summary.stat |
How to summarize multiple values |
tissue |
Tissue type |
model.id |
Indicates which |
model.type |
Type of model, such as mutated or wild type |
type.color |
A list with colors used for each type in the legend |
legend.name |
Name of the legend |
yname |
Name for the y-axis |
title |
Title of the plot |
sort |
Default |
waterfall plot in ggplot2
1 2 3 4 5 6 7 | data(brca)
waterfall(brca, drug="binimetinib", res.measure="best.avg.response_published")
## example with model.type where we color the models by TP53 mutation type
mut <- summarizeMolecularProfiles(brca,drug = "binimetinib", mDataType="mutation")
model.type <- Biobase::exprs(mut)["TP53", ]
waterfall(brca, drug="binimetinib", res.measure="best.avg.response_published",
tissue="BRCA", model.id=names(model.type), model.type= model.type)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.