PlotDoseResponse {synergyfinder}R Documentation

Visualize the drug combination dose-response data

Description

A function to visualize the drug combination dose-response data

Usage

PlotDoseResponse(
  data,
  adjusted = TRUE,
  pair.index = NULL,
  color.low.response = "green",
  color.point = "red",
  color.high.response = "red",
  color.conc = "red",
  save.file = FALSE,
  file.type = "pdf",
  file.name = NULL,
  width = 12,
  height = 6,
  ...
)

Arguments

data

a list object generated by function ReshapeData.

adjusted

a logical value. If it is FALSE, original response matrix will be plotted. If it is TRUE, adjusted response matrix will be plotted.

pair.index

a parameter to specify which drug combination if there are many drug combinations in the data. By default, it is NULL so that the visualization of all the drug combinations in the data is returned.

color.low.response

a charactor in R color format. It indicates the color for the response lower than 0. Default setting is "green".

color.point

a charactor in R color format. It indicates the color for the data point in the plot. Default setting is "red".

color.high.response

a charactor in R color format. It indicates the color for the response higher than 0. Default setting is "red".

color.conc

a charactor in R color format. It indicates the color for the concentrations label for axises. Default setting is "red".

save.file

a parameter to specify if the visualization results are saved as pdf files in current working directory or not. If it is FALSE, the results are returned as a list of the plots. It is FALSE by default.

file.type

a character. It indicates the format of files you want to save as. Default is "pdf". Available values are "jpeg", "bmp", "png", "tiff", "pdf", "svg".

file.name

a character vector. It indicates the file names, if user chose to save the plot to local directory.If it is not defined by user, a default name will be assigned.

width

a numeric value. It indicates the width of saved file.

height

a numeric value. It indicates the height of saved file.

...

further graphical parameters from plot for plotting the single drug dose-response curve. Use e.g., cex.lab to change the axis label size and cex.axis to change the tick size of axises.

Value

NULL. The plot will be saved into a local file if save.file = TRUE. If save.file = FALSE, the plot will be printed in default graphic device.

Author(s)

Examples

data("mathews_screening_data")
data <- ReshapeData(mathews_screening_data)
PlotDoseResponse(data)

[Package synergyfinder version 2.2.4 Index]