Description Usage Arguments Value Author(s) References See Also Examples
View source: R/plotfunctions.R
This function plots the absorbance values against time. The bootstrapped curves can be plotted together with the curves. Since a plot like this shold be made for each cell line for each drug it is possible to save the plots in pdf files for later inspection. The folder for the pdfs is specified in the argument figure.output
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## S3 method for class 'growthModel'
plot(x, ..., time.points.used = c("all"),
drugs = NULL, names = NULL, conc.names = NULL,
ylim = NULL, xlim = NULL, nrows = NULL,
ncols = NULL, xlab = "Time (Hours)", ylab = "Absorbance",
main = "Dose Response Growth Curves",
absorbance.CI = FALSE, absorbance.CI.col = "#C6C6C5",
absorbance.CI.alpha = 80, bootstrap.conf = TRUE,
barcol = "grey", bar.height = 1.3,
plotgrid = FALSE, grid.col = "#C6C6C5",
grid.lty = 1, grid.lwd = 1, bs.col = "#C6C6C5",
bs.lty = 1, bs.lwd = 0.5, bs.alpha = 80,
line.col = "#662D91", line.lty = 1,
line.lwd = 1, line.alpha = "", plot.data = TRUE,
col.by.identifier = TRUE, col.points = "#9F9692",
pch.points.outlier = 4, pch.points = 1, plot.all = TRUE,
plot.data.all = FALSE, line.col.all = "#9F9692", line.lty.all = 1,
line.lwd.all = 0.8, line.col.C0 = "#71965A", line.col.GI50 = "#4F6E9F",
line.col.TGI = "#9D2441", line.col.LC48 = "#333333", log = "",
pdfit = FALSE, figure.output = getwd(), pdf.width = 6.6929, pdf.height = 6.6929, pointsize = 8)
|
x |
An A.data object created by the function |
... |
Further arguments passed to plot. |
time.points.used |
The G model have been calculated based on the all and the individual time points. Here you can specify which of the established models should be plotted. defeaults to |
drugs |
Character vector of the drugs for which the plot should be made. |
names |
Character vector of cell lines for which the plot should be made. |
conc.names |
Names of the concentrations used in the plot. These are the names specified in the protocols. |
ylim |
Limit of the y-axis. |
xlim |
Limit of the x-axis. |
nrows |
Number of rows. |
ncols |
Number of columns |
xlab |
Name of the x-axis. |
ylab |
Name of the y-axis. |
main |
The main title of the plot. |
absorbance.CI |
Should 95% confidence intervals for the absorbance values be shown. |
absorbance.CI.col |
must be specified as Hex rgb, i.e. something like "#334455". |
absorbance.CI.alpha |
Numeric value between 10 and 99 specifying the opacity of the confidence interval. |
bootstrap.conf |
Should the bootstrapped curves be shown. |
barcol |
Colour of the bar above each plot. |
bar.height |
The height of the abovementioned bar. |
plotgrid |
Should a grid be plotted. |
grid.col |
The colour of the grid. |
grid.lty |
Line type of the grid. |
grid.lwd |
Line width og the grid. |
bs.col |
colour of bootstrapped curves must be specified as Hex rgb, i.e. something like "#334455". |
bs.lty |
Line type for the bootstrapped curves. |
bs.lwd |
Line width of the bootstrapped curves |
bs.alpha |
Numeric value between 10 and 99 specifying the opacity of the bootstrap curves. |
line.col |
Colour of the the curves must be specified as Hex rgb, i.e. something like "#334455". |
line.lty |
Line type for the curves. |
line.lwd |
Line width for the curves. |
line.alpha |
Numeric value between 10 and 99 specifying the opacity of the curves. |
plot.data |
Should the data be plotted. |
col.by.identifier |
Should the data be colourd in accordace with the specifier. |
col.points |
Colour of the points. |
pch.points.outlier |
pch used to indicate outliers. |
pch.points |
pch used to indicate non-outliers. |
plot.all |
Should the data be combined into a single plot for all concentrations. |
plot.data.all |
Should the abovementioned panel be plotted with data. |
line.col.all |
Colour of the lines in the all data panel. |
line.lty.all |
Line type for the lines in the all data panel. |
line.lwd.all |
Line width for the lines in the all data panel. |
line.col.C0 |
Colour specifying the untreated control. |
line.col.GI50 |
Colour specifying the GI50 value. |
line.col.TGI |
Colour specifying the TGI value. |
line.col.LC48 |
Colour specifying the LC48 value. |
log |
Argument passed along to the plot. if |
pdfit |
Should the created plots be save in pdfs. |
figure.output |
The folder where the plots should be stored |
pdf.width |
Width of the pdf. |
pdf.height |
Height of te pdf. |
pointsize |
Pointsize of the pdf. |
plot of absorbance values plotted aginst time with the result of the G-model superimposed.
The function was written at department of haematology, Aalborg University Hospital and maintained by Steffen Falgreen.
Steffen Falgreen et al. Exposure time independent summary statistics for assessment of drug dependent cell line growth inhibition (2013)
CI
,DRdataBoxplot
,plot.DRdata
,plotGrid
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | require(DoseR)
data(A.data)
# plot of the fitted models with the bootstrapped results shown.
# This plot can be used for investigation of the fitted model.
plot.growthModel(x = A.data,
drugs = "Rituximab",
names = "OCI-Ly7",
time.points.used=c("all", 48),
bootstrap.conf=FALSE,
line.col= c("#662D91", "#F7931E"),
absorbance.CI=FALSE,
conc.names = paste("C", c(0, 1:17), sep = ""),
pointsize = 8,
pdfit = FALSE,
plotgrid = TRUE, nrows=4, ncols=5,
col.by.identifier = FALSE)
plot.growthModel(x = A.data,
drugs = "Doxorubicin",
names = "SU-DHL-4",
time.points.used=c("all", 48),
bootstrap.conf=TRUE,
line.col= c("#662D91", "#F7931E"),
absorbance.CI=FALSE,
conc.names = paste("C", c(0, 1:17), sep = ""),
pointsize = 8,
pdfit = FALSE,
plotgrid = TRUE, nrows=4, ncols=5,
col.by.identifier = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.