4.8. cpforager.diagnostic.plot_violin
- cpforager.diagnostic.plot_violin(df, plot_params, var, title, var_lab, quantiles=[0.25, 0.5, 0.75])
Plot the violin plot of dataframe column designated by the value of var.
- Parameters:
df (pandas.DataFrame) – dataframe with the column designated by the value of var.
plot_params (dict) – plot parameters dictionary.
var (str) – name of the column in df.
title (str) – plot title.
var_lab (str) – x-axis label.
quantiles (array(float)) – array of quantiles to emphasize.