PlotSensitivitySynergy: Plot Sensitive-Synergy Plot for All the Combinations in the...

View source: R/plot_sensitivity_synergy.R

PlotSensitivitySynergyR Documentation

Plot Sensitive-Synergy Plot for All the Combinations in the Input Data

Description

This function will generate a scatter plot for all the combinations in the input data. The x-axis is the Combination Sensitive score (CSS).

Usage

PlotSensitivitySynergy(
  data,
  plot_synergy,
  point_size = 1,
  point_color = "#2D72AD",
  show_labels = FALSE,
  point_label_color = "#2D72AD",
  label_size = 10,
  dynamic = FALSE,
  plot_title = NULL,
  axis_line = FALSE,
  text_size_scale = 1
)

Arguments

data

A list object has been processed by functions: ReshapeData, CalculateSynergy, and CalculateSensitivity.

plot_synergy

A character value. It indicates the synergy score for visualization. The available values are: "ZIP", "HSA", Bliss", "Leowe".

point_size

A numeric value. It indicates the size of points. The unit is "mm"

point_color

An R color value. It indicates the color for the points.

show_labels

A logic value. It indicates whether to show the labels along with points or not.

point_label_color

An R color value. It indicates the color for the label of data points.

label_size

A numeric value. It controls the size of the labels in "pt"

dynamic

A logical value. If it is TRUE, this function will use plot_ly to generate an interactive plot. If it is FALSE, this function will use wireframe to generate a static plot.

plot_title

A character value. It specifies the plot title. If it is NULL, the function will automatically generate a title.

axis_line

A logical value. Whether to show the axis lines and ticks.

text_size_scale

A numeric value. It is used to control the size of text for axis in the plot. All the text size will multiply by this scale factor.

Value

A ggplot object, while dynamic = FALSE. A plotly object, while dynamic = TRUE.

Author(s)

Examples

data("mathews_screening_data")
data <- ReshapeData(mathews_screening_data)
data <- CalculateSynergy(data, method = c("ZIP"))
data <- CalculateSensitivity(data)
PlotSensitivitySynergy(data, plot_synergy = "ZIP")

shuyuzheng/synergyfinder documentation built on Feb. 20, 2023, 11:33 p.m.