Skip to Content

Box Plot

Context

The Box Plot chart in BayesiaLab represents a classical box-and-whisker plot that is commonly used in descriptive statistics for analyzing distributions of numerical variables.

Usage

You can access the Box Plot function in multiple ways:

  • Menus > Data > Charts > Box Plot.
  • Node Contextual Menu > Charts > Box Plot.

In the Parameter panel, select one or more variables from the Continuous Variables list. If you had nodes selected when you opened the Charts window, the variables in the dropdown menu are restricted to that selection. To choose multiple variables, hold Ctrl (Windows) or Cmd (macOS) while clicking. Optionally, pick a variable from the Selector Variable dropdown menu. Using a Selector Variable, you can show multiple Box Plots for subgroups side by side. Click Show.

Box Plot chart editor

Chart details

The Interquartile Range is IQR=Q3−Q1\mathrm{IQR}=Q_3-Q_1. The chart includes the following visual marks in the main chart area:

  • First Quartile Q1Q_1
  • Median Q2Q_2
  • Last Quartile Q3Q_3
  • Minimum, the lowest observed value at or above the lower fence Q1−1.5 IQRQ_1-1.5\,\mathrm{IQR}.
  • Maximum, the highest observed value at or below the upper fence Q3+1.5 IQRQ_3+1.5\,\mathrm{IQR}.
  • Notches, which provide a rough indication of differences between medians. Here, NN is the number of observations for that box.
    • The First Notch is Q2−1.58 IQR/NQ_2-1.58\,\mathrm{IQR}/\sqrt{N}.
    • The Last Notch is Q2+1.58 IQR/NQ_2+1.58\,\mathrm{IQR}/\sqrt{N}.
  • Mean
  • Lower Suspect Values, between the Minimum and Q1−3 IQRQ_1-3\,\mathrm{IQR}.
  • Upper Suspect Values, between the Maximum and Q3+3 IQRQ_3+3\,\mathrm{IQR}.
  • Lower Extreme Values, below Q1−3 IQRQ_1-3\,\mathrm{IQR}.
  • Upper Extreme Values, above Q3+3 IQRQ_3+3\,\mathrm{IQR}.
Box Plot chart

For a clearer view of the details, the chart content is presented separately with annotations.

Loading SVG...
Click to Zoom

Information Panel

In addition to the main chart area, the Information Panel at the top explains each element as you hover your cursor over it.

Box Plot chart with the Information Panel

Zoom function

  • To zoom in to the chart, click and hold the left mouse button. Drag the cursor to designate the area to focus on. Then, release the mouse button.
  • To revert to the default zoom level, double-click anywhere on the chart.

Workflow animation

Demo files