View source: R/plot_dose_response_curve.R
PlotDoseResponseCurve | 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 = TRUE, 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 = 1, 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 logical value. It indicates whether to show the grids in the
plots. The default value is |
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 |
... |
Additional graphical arguments that are inherited from link[drc]plot.drc function. For example, use xlim = c(0.5, 500) or ylim = (0, 100) to control the ranges of x-axis or y-axis, respectively. |
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, plot_block = 1, drug_index = 2, grid = NULL) replayPlot(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.