Plotting method for survData objects
This is the generic plot
S3 method for the survData
class.
It plots the number of survivors as a function of time.
## S3 method for class 'survDataCstExp' plot( x, xlab = "Time", ylab = "Number of survivors", main = NULL, concentration = NULL, style = "ggplot", pool.replicate = FALSE, addlegend = FALSE, remove.someLabels = FALSE, ... )
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 |
concentration |
a numeric value corresponding to some concentration(s) in
|
style |
graphical backend, can be |
pool.replicate |
if |
addlegend |
if |
remove.someLabels |
if |
... |
Further arguments to be passed to generic methods |
When style = "ggplot"
(default), the function calls function
ggplot
and returns an object of class ggplot
.
# (1) Load the data data(zinc) zinc <- survData(zinc) # (2) Plot survival data with a ggplot style plot(zinc) # (3) Plot the survival data for one specific concentration plot(zinc, concentration = 0.66)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.