depictr.ecdf_plot#

depictr.ecdf_plot(data, x, group=None, legend_inside=False, title=None)#

Empirical cumulative distribution function, one step curve per group.

The ECDF reads off the proportion of observations at or below each value, so it shows the whole distribution without the smoothing choices a density makes. Curves that sit to the right are shifted towards larger values.

Parameters:
  • data (pandas.DataFrame) – The data.

  • x (str) – Name of the numeric column.

  • group (str, optional) – A grouping column mapped to colour, drawn as one curve per level.

  • legend_inside (bool) – When True and a group is given, place the legend in the bottom-right, which an ECDF leaves empty once it saturates.

  • title (str, optional) – Plot title.

Return type:

plotnine.ggplot