emba (version 0.1.1)

make_barplot_on_synergy_subset_stats: Bar plot of observed synergy subsets

Description

Use this function to easily make a barplot that shows the amount of models that predicted each synergy subset out of the set of all observed synergies.

Usage

make_barplot_on_synergy_subset_stats(synergy.subset.stats,
  threshold.for.subset.removal, bottom.margin, cell.line = NULL)

Arguments

synergy.subset.stats

integer vector with values the amount of models that predicted each synergy subset, defined as a comma-separated string of drug combinations in the names attribute of the vector

threshold.for.subset.removal

integer. Use it to discard elements of the synergy.subset.stats vector that are strictly less than the specified threshold

bottom.margin

integer used to vertically fit in the names of the drug combinations in the x-axis (specified in inches). The best bottom.margin value depends on the maximum size of a synergy subset as defined in the names attribute of the synergy.subset.stats. Some rules of thumb are: size = 1 => bottom.margin = 4, size = 2 => bottom.margin = 6, size = 3 => bottom.margin = 9, size = 4 => bottom.margin = 12, etc.

cell.line

string. The name of the cell line to be used in the title of the produced plot. Default value: NULL (the cell line name will not be added to the title).