depictr.scree_plot#

depictr.scree_plot(data, cols=None, title=None)#

Scree plot: variance explained per component, with the cumulative line.

Bars give the proportion of variance each principal component explains; an overlaid line and points give the running cumulative proportion. Both share the (0, 1) y-axis.

Parameters:
  • data (pandas.DataFrame)

  • cols (list of str, optional) – Numeric columns to decompose; defaults to all numeric columns.

  • title (str, optional)

Return type:

plotnine.ggplot