cum_percent_plot: Cumulative percentage plot

View source: R/cum_percent_plot.R

cum_percent_plotR Documentation

Cumulative percentage plot

Description

Plots or tabulates cumulative percentages associated with elements in a vector

Usage

cum_percent_plot(vector, output_type = "plot")

Arguments

vector

a numeric vector

output_type

if output_type = "plot", return a cumulative percentage plot; if output_type = "dt", return a data.table with cumulative percentages. By default, output_type = "plot"

Examples


cum_percent_plot(c(1:100, NA, NA))
cum_percent_plot(mtcars$mpg)
cum_percent_plot(vector= mtcars$mpg, output_type = "dt")


kim documentation built on July 8, 2022, 5:07 p.m.