powered by
This function computes the values of two empirical cumulative distribution function and plots the values.
ecdf_plot(data_1, data_2, bins_size)
The function returns a plot as a ggplot2 object.
data 1.
data 2.
bin size.
# load stodom require(stodom) data_a <- rnorm(500, 3, 2) data_b <- rnorm(500, 1, 2) # plot ecdfs ecdf_plot(data_1 = data_a, data_2 = data_b, bins_size = 0.1)
Run the code above in your browser using DataLab