PlotData {morseTKTD} | R Documentation |
Plotting method for survDataVar
objects
Description
This is the generic plot
S3 method for the survDataVar
class.
It plots the number of survivors as a function of time.
Usage
## S3 method for class 'SurvDataVarExp'
plot(
x,
xlab = "Time",
ylab = "Number of survivors",
main = NULL,
one_plot = FALSE,
add_legend = FALSE,
...
)
## S3 method for class 'SurvDataCstExp'
plot(
x,
xlab = "Time",
ylab = "Number of survivors",
main = NULL,
one_plot = FALSE,
...
)
Arguments
x |
an object of class |
xlab |
a label for the |
ylab |
a label for the |
main |
main title for the plot. |
one_plot |
if |
add_legend |
if |
... |
Further arguments to be passed to generic methods. |
Value
an object of class ggplot
,
see function ggplot
[Package morseTKTD version 0.1.3 Index]