x: vector with the values of the random variable X.
fx: vector with the probabilities of X.
col: color for the line.
lwd: line width.
...: further arguments and graphical parameters.
Returns
A plot with the cumulative distribution function.
Examples
# Example 1# for a particular distributionx <-1:6fx <- c(0.19,0.21,0.4,0.12,0.05,0.03)plot_discrete_cdf(x, fx, las=1, main="")# Example 2# for a Poisson distributionx <-0:10fx <- dpois(x, lambda=3)plot_discrete_cdf(x, fx, las=1, main="CDF for Poisson")