Skip to contents

Constructs the plot of the survival function of an object of the survival_function class.

Usage

# S3 method for survival_function
plot(x, ...)

Arguments

x

A numeric vector representing the dataset.

...

Additional arguments to be passed to the ggplot function.

Value

A ggplot object displaying the survival function plot.

Examples

survival_weibull <- survival_function(dweibull)
plot(survival_weibull(0:10, shape = 2, scale = 1))