Skip to content

Variable: ecdf ​

ts
const ecdf: ExpressFunction<EcdfOptions>;

An ECDF plot (px.ecdf, plan E10.7): per group, a scatter step line (line.shape: 'hv') through the sorted values of x (or y for a horizontal one) and the share of rows at or below each. y (x when horizontal) optionally weights the rows. ecdfnorm and ecdfmode as in px; the cumulative axis starts at zero.

Example ​

ts
const figure = ecdf(rows, { x: 'total_bill', color: 'sex' });

Released under the MIT License.