create_ecdf: Create Empirical Cumulative Distribution Function (ECDF)

Description Usage Arguments Value Examples

View source: R/create_ecdf.R

Description

create_ecdf generates a plot of the Empirical Cumulative Distribution Function (ECDF) using the observed data. The ECDF shows the proportion of obervations that are less than or equal to each obvsered value.

Usage

1
2
3
4
5
6
7
8
create_ecdf(
  vector,
  title = "ECDF Chart",
  subtitle = "",
  caption = "",
  x_label = "Quartiles",
  y_label = "Frequency"
)

Arguments

vector

Vector containing the observed numeric data.

title

Character string; title to be displayed on Pareto chart. Default is "ECDF Plot".

subtitle

Character string; subtitle to be displayed on chart. Default is "".

caption

Character string; caption to be displayed on the chart. Default is "".

x_label

Character string; x axis label to be displayed on the chart. Default is "Groups".

y_label

Character string; y axis label to be displayed on the chart. Default is "Frequency".

Value

A plot containing the ECDF. If an error or warning occurs, a message will be printed to the console and the function will return NULL.

Examples

1
2
source <- c(1, 1, 1, 1, 2, 2, 2, 3, 3, 4)
plot <- create_ecdf(source)

dtminnick/fdistr documentation built on May 19, 2021, 1:18 a.m.