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

Description Usage Arguments Value Author(s) Examples

View source: R/plot_sensitive_synergy.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
PlotSensitiveSynergy(
  data,
  plot_synergy,
  point_color = "#2D72AD",
  point_size = 1,
  point_label_color = "#2D72AD",
  show_labels = FALSE,
  plot_title = NULL,
  dynamic = FALSE,
  label_size = 10
)

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_color

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

point_size

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

point_label_color

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

show_labels

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

plot_title

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

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.

label_size

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

Value

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

Author(s)

Examples

1
2
3
4
5
data("mathews_screening_data")
data <- ReshapeData(mathews_screening_data)
data <- CalculateSynergy(data, method = c("ZIP"))
data <- CalculateSensitivity(data)
PlotSensitiveSynergy(data, plot_synergy = "ZIP")

synergyfinder documentation built on April 4, 2021, 6 p.m.