.Extract2DrugPlotData {synergyfinder} | R Documentation

## Extract Data for 2 Drug Combination Plots

### Description

Extract Data for 2 Drug Combination Plots

### Usage

    .Extract2DrugPlotData(
      data,
      plot_block = 1,
      drugs = c(1, 2),
      plot_value = "response",
      statistic = NULL
    )

### Arguments

`data` | A list object generated by function `ReshapeData`.
`plot_block` | A character/integer. It indicates the block ID for the block to visualize.
`drugs` | A vector of characters or integers with length of 2. It contains the index for two drugs to plot. For example, `c(1, 2)` indicates to plot "drug1" and "drug2" in the input `data`.
`plot_value` | A character value. It indicates the value to be visualized. If the `data` is the direct output from ReshapeData, the values for this parameter are: response_origin The original response value in input data. It might be % inhibition or % viability. response The % inhibition after preprocess by function ReshapeData If the `data` is the output from CalculateSynergy, following values are also available: ZIP_ref, Bliss_ref, HSA_ref, Loewe_ref The reference additive effects calculated by ZIP, Bliss, HSA or Loewe model, respectively. ZIP_synergy, Bliss_synergy, HSA_synergy, Loewe_synergy The synergy score calculated by ZIP, Bliss, HSA or Loewe model, respectively. ZIP_fit The response fitted by ZIP model.
`statistic` | A character or NULL. It indicates the statistics printed in the plot while there are replicates in input data. Available values are: sem Standard error of mean; ci 95% confidence interval. If it is `NULL`, no statistics will be printed.

### Value

A data frame. It contains the concentrations for selected drugs, the selected values for plotting, and the text for printing on the heatmap.

### Author(s)

- Shuyu Zheng shuyu.zheng@helsinki.fi

- Jing Tang jing.tang@helsinki.fi

[Package synergyfinder version 3.0.14 Index]