Plot dose-response from survData objects
This is the generic plotDoseResponse
S3 method for the survData
class. It plots the survival probability as a function of concentration at a given
target time.
## S3 method for class 'survDataCstExp' plotDoseResponse( x, xlab = "Concentration", ylab = "Survival probability", main = NULL, target.time = NULL, style = "ggplot", log.scale = FALSE, remove.someLabels = FALSE, addlegend = TRUE, ... )
x |
an object of class |
xlab |
a label for the X-axis, by default |
ylab |
a label for the Y-axis, by default |
main |
main title for the plot |
target.time |
a numeric value corresponding to some observed time in |
style |
graphical backend, can be |
log.scale |
if |
remove.someLabels |
if |
addlegend |
if |
... |
Further arguments to be passed to generic methods |
The function plots the observed values of the survival probability at a given time point
as a function of concentration. The 95 % binomial confidence interval is added
to each survival probability. It is calculated using function
binom.test
from package stats
.
Replicates are systematically pooled in this plot.
When style = "generic"
, the function calls the generic function
plot
When style = "ggplot"
, the function return an object of class
ggplot
, see function ggplot
library(ggplot2) # (1) Load the data data(zinc) # (2) Create an object of class 'survData' zinc <- survData(zinc) # (3) Plot dose-response plotDoseResponse(zinc) # (4) Plot dose-respo nse with a generic style plotDoseResponse(zinc, style = "generic")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.