Plot waterfall

plotWaterfall(object, ...)

# S4 method for data.frame
plotWaterfall(
  object,
  sampleCol,
  valueCol,
  interestingGroups = NULL,
  trans = c("log10", "log2", "identity"),
  fill = getOption(x = "acid.fill.discrete", default = getOption(x =
    "ggplot2.discrete.fill", default = AcidPlots::scale_fill_synesthesia_d())),
  labels = NULL
)

Arguments

object

Object.

sampleCol

character(1). Column name of discrete samples to plot on X axis.

valueCol

character(1). Column name of continues values to plot on Y axis.

interestingGroups

character. Groups of interest to use for visualization. Corresponds to factors describing the columns of the object.

trans

character(1). Name of the axis scale transformation to apply.

For more information:

help(topic = "scale_x_continuous", package = "ggplot2")
fill

ggproto/ScaleDiscrete. Desired ggplot2 fill scale. Must supply discrete values. When set to NULL, the default ggplot2 color palette will be used. If manual color definitions are desired, we recommend using ggplot2::scale_fill_manual().

To set the discrete fill palette globally, use:

options(acid.fill.discrete = ggplot2::scale_fill_viridis_d())
labels

list. ggplot2 labels. See ggplot2::labs() for details.

...

Additional arguments.

Value

ggplot.

Note

Updated 2020-07-09.

Examples

## data.frame ==== object <- data.frame( cell_id = paste("cell", seq_len(12L), sep = "_"), ic50 = seq( from = 0.1, to = 10L, length.out = 12L ), tumor_type = rep( x = c("breast", "bladder"), times = 6L ), tumor_subtype = rep( x = c("benign", "malignant"), each = 6L ) ) plotWaterfall( object = object, sampleCol = "cell_id", valueCol = "ic50", interestingGroups = c("tumor_type", "tumor_subtype"), trans = "log10", labels = list( title = "Effect of compound on cell survival" ) )
plotWaterfall( object = object, sampleCol = "cell_id", valueCol = "ic50", trans = "identity" )