ct.ecdf: Generate a cumulative tally of reads by guide rank

Description Usage Arguments Value Author(s) Examples

View source: R/GuideCDF.R

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)

gCrisprTools documentation built on Nov. 8, 2020, 8:17 p.m.