plotWaterfall | R Documentation |
Plot waterfall
plotWaterfall(object, ...)
## S4 method for signature 'DFrame'
plotWaterfall(
object,
sampleCol,
valueCol,
interestingGroups = NULL,
trans = c("identity", "log2", "log10"),
fill = purpleOrange(1L),
labels = list(title = NULL, subtitle = NULL)
)
## S4 method for signature 'SummarizedExperiment'
plotWaterfall(
object,
assay = 1L,
fun = c("mean", "sum"),
interestingGroups = NULL,
...
)
## S4 method for signature 'data.frame'
plotWaterfall(
object,
sampleCol,
valueCol,
interestingGroups = NULL,
trans = c("identity", "log2", "log10"),
fill = purpleOrange(1L),
labels = list(title = NULL, subtitle = NULL)
)
object |
Object. |
sampleCol |
|
valueCol |
|
interestingGroups |
|
trans |
For more information: help(topic = "scale_x_continuous", package = "ggplot2") |
fill |
|
labels |
|
assay |
|
fun |
|
... |
Additional arguments. |
ggplot
.
Updated 2023-08-10.
data(RangedSummarizedExperiment, package = "AcidTest")
## data.frame ====
object <- data.frame(
"cellId" = AcidGenerics::autopadZeros(
object = paste("cell", seq_len(12L), sep = "_")
),
"ic50" = seq(
from = 0.1,
to = 10L,
length.out = 12L
),
"tumorType" = rep(
x = c("breast", "bladder"),
times = 6L
),
"tumorSubtype" = rep(
x = c("benign", "malignant"),
each = 6L
)
)
plotWaterfall(
object = object,
sampleCol = "cellId",
valueCol = "ic50",
interestingGroups = c("tumorType", "tumorSubtype"),
trans = "log10"
)
## SummarizedExperiment ====
object <- RangedSummarizedExperiment
plotWaterfall(object, trans = "identity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.