View source: R/drugDoseResponseCurve.R
drugDoseResponseCurve | R Documentation |
Given a list of PharmacoSets, the function will plot the drug_response curve, for a given drug/cell pair. The y axis of the plot is the viability percentage and x axis is the log transformed concentrations. If more than one pSet is provided, a light gray area would show the common concentration range between pSets. User can ask for type of sensitivity measurment to be shown in the plot legend. The user can also provide a list of their own concentrations and viability values, as in the examples below, and it will be treated as experiments equivalent to values coming from a pset. The names of the concentration list determine the legend labels.
drugDoseResponseCurve(
drug,
cellline,
pSets = list(),
concentrations = list(),
viabilities = list(),
conc_as_log = FALSE,
viability_as_pct = TRUE,
trunc = TRUE,
legends.label = c("ic50_published", "gi50_published", "auc_published",
"auc_recomputed", "ic50_recomputed"),
ylim = c(0, 100),
xlim,
mycol,
title,
plot.type = c("Fitted", "Actual", "Both"),
summarize.replicates = TRUE,
lwd = 0.5,
cex = 0.7,
cex.main = 0.9,
legend.loc = "topright",
verbose = TRUE,
sample_col = "sampleid",
treatment_col = "treatmentid"
)
drug |
|
cellline |
|
pSets |
|
concentrations , viabilities |
|
conc_as_log |
|
viability_as_pct |
|
trunc |
|
legends.label |
|
ylim |
|
xlim |
|
mycol |
|
title |
|
plot.type |
|
summarize.replicates |
|
lwd |
|
cex |
|
cex.main |
|
legend.loc |
And argument passable to xy.coords for the position to place the legend. |
verbose |
|
sample_col |
|
treatment_col |
|
Plots to the active graphics device and returns an invisible NULL.
if (interactive()) {
# Manually enter the plot parameters
drugDoseResponseCurve(concentrations=list("Experiment 1"=c(.008, .04, .2, 1)),
viabilities=list(c(100,50,30,1)), plot.type="Both")
# Generate a plot from one or more PSets
data(GDSCsmall)
drugDoseResponseCurve(drug="Doxorubicin", cellline="22RV1", pSets=GDSCsmall)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.