plot_ecdf: Plot ECDF

View source: R/plot_ecdf.R

plot_ecdfR Documentation

Plot ECDF

Description

Less typing to get ggplot2::stat_ecdf. Can accept dataframe with bare or quoted name, or vector.

Usage

plot_ecdf(data, var = NULL)

Arguments

data

Either a vector, or a dataframe in which to find var.

var

When data is a dataframe, bare or quoted name of column to use.

Examples

plot_ecdf(mtcars$mpg)
plot_ecdf(mtcars, mpg)
plot_ecdf(mtcars, "mpg")

wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.