cum_percent_plot: Cumulative percentage plot

Description Usage Arguments Examples

View source: R/cum_percent_plot.R

Description

Plots or tabulates cumulative percentages associated with elements in a vector

Usage

1
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

1
2
3
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 April 25, 2021, 1:06 a.m.