Icon

Python Graphics - BoxPlot and ViolinPlot with Statistics

<p>Combined Violin–Boxplot Visualization with Statistical Summary and Custom Graphic Annotations</p><p></p>

URL: 9 best practices to boost automated business reporting https://www.knime.com/blog/-best-practices-automated-business-reporting
URL: Use Apache E Charts and KNIME to create dynamic graphics with Data Apps - KNIME Forum (90374) https://forum.knime.com/t/bar-chart-with-data-from-pivot-table/90355/14?u=mlauber71
URL: Box Plot sorted by Count - KNIME Forum (90706) https://forum.knime.com/t/box-plot-resorting-x-axis-based-on-condition/90706/2?u=mlauber71
URL: Medium: “The beautiful Violin Plot that has it all” — Create Graphics with R and KNIME Components https://medium.com/low-code-for-advanced-data-science/the-beautiful-violin-plot-that-has-it-all-create-graphics-with-r-and-knime-components-b45464428d19

Annotations and comments
  • Combined Violin–Boxplot Visualization with Statistical Summary and Custom Graphic Annotations https://forum.knime.com/t/box-plot-resorting-x-axis-based-on-condition/90706/2?u=mlauber71
  • Exploring the Power of Python Graphics with KNIME: A Collection of Examples https://medium.com/p/841df87b5563
  • This Python Script for a KNIME node generates a combined violin + boxplot visualization for a selected categorical (x-axis) and numerical (y-axis) variable. It automatically computes detailed statistics per category (count, mean, median, quartiles, whiskers, min/max) and outputs them as a second KNIME data table. The graphic is fully customizable via KNIME flow variables, including: Selection of x and y columns Sorting of categories (alphabetical or by count) Text scaling factor A custom title and footnote An automatically appended UTC timestamp The final figure is exported as a PNG image to an image output port. This script is ideal for exploratory data analysis, audit-ready reporting, comparisons across categories, or reusable KNIME components that create standardized statistical graphics.
  • KNIME and Python — Setting up and managing Conda environments https://medium.com/p/2ac217792539
  • filter numeric only
  • filter string only
  • RegEx pattern to only keep one numeric and one string column selected
  • list of string columns
  • list of numeric columns
  • regex_pattern return "^(" + $${Splot_x_col}$$ + "|" + $${Splot_y_col}$$ + ")$";
  • Title and Type
  • plot_text_scale
  • plot_x_order_mode
  • Title of Graphic
  • Footnote of Graphic
  • X-Axis Variable
  • Y-Axis Variable
  • using the adult sample dataset
  • from_knime_boxplot_violinplot.png
  • 1.920 x 1.080 PNG file

Nodes

Extensions

Links