Skip to contents

This function plots the cumulative distribution function (CDF) of a given dataset.

Usage

# S3 method for cdf_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 CDF plot.

Examples

cdf_weibull <- cdf_function(dweibull)
plot(cdf_weibull(0:10, shape = 2, scale = 1))