PlotDoseResponseCurve {synergyfinder} | R Documentation |
This function will pot the dose response curve fitted by 4 parameters log-logistic curve.
PlotDoseResponseCurve( data, plot_block = 1, drug_index = 1, adjusted = TRUE, Emin = NA, Emax = NA, grid = expression(graphics::grid(col = "#DFDFDF", lty = 1)), point_color = "#C24B40", curve_color = "black", text_size_scale = 1, plot_title = NULL, plot_subtitle = NULL, plot_setting = list(cex.lab = 1 * text_size_scale, mgp = c(2, 0.5, 0), font.main = 2, font.lab = 3, cex.main = 14/12 * text_size_scale, bty = "l", lwd = 1.5), plot_new = TRUE, record_plot = TRUE )
data |
A list object generated by function |
plot_block |
A character/integer. It indicates the block ID for the block to visualize. |
drug_index |
A character/integer. It indicates the index of the drug to
plot. For example, 1 or "1" indicates to plot "drug1" in the input
|
adjusted |
A logical value. If it is |
Emin |
A numeric or |
Emax |
A numeric or |
grid |
A expression for grid function of |
point_color |
An R color value. It indicates the color for points in dose response curve plots. |
curve_color |
An R color value. It indicates the color for curves in dose response curve plots. |
text_size_scale |
A numeric value. It is used to control the size of text in the plot. All the text size will multiply by this scale factor. |
plot_title |
A character value or NULL. It specifies the plot title.
If it is |
plot_subtitle |
A character or NULL. It indicates the subtitle for the
plot. If it is |
plot_setting |
A list of graphical arguments. The arguments are passed to par function to modify the appearance of plots. |
plot_new |
A logic value. If it is |
record_plot |
A logic value. If it is |
A plot object recorded by recordPlot or NULL.
Shuyu Zheng shuyu.zheng@helsinki.fi
Jing Tang jing.tang@helsinki.fi
data("mathews_screening_data") data <- ReshapeData(mathews_screening_data) p <- PlotDoseResponseCurve(data, grid = NULL) replayPlot(p)