Generate a cumulative tally of reads by guide rank

Share:

Description

This function returns a numeric vector of the same length as the input, where each element n contains the proportion the sum of the full vector that is captured by its first 1-n elements (arranged in descending order).

Usage

1

Arguments

vector

An input numeric vector to be aggregated.

Value

A CDF plot displaying the appropriate CDF curves on the default device.

Author(s)

Russell Bainer

Examples

1
2
v <- sort(sample(1:100, 30, replace = TRUE, 100:1))
ct.ecdf(v)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.