ecdf_plot {stodom}R Documentation

plot ecdfs

Description

This function computes the values of two empirical cumulative distribution function and plots the values.

Usage

ecdf_plot(data_1, data_2, bins_size)

Arguments

data_1

data 1.

data_2

data 2.

bins_size

bin size.

Details

This function computes the values of two empirical cumulative distribution function and plots the values.

Value

The function returns a plot as a ggplot2 object.

Examples


# 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)

[Package stodom version 0.0.1 Index]