Tableau (Box and Whisker plot in tableau)
Box and Whisker Plot:
π Box and whisker plots, sometimes known as box plots, are a great chart to use when showing the distribution of data points across a selected measure. These charts display ranges within variables measured.
π Use box plots, also known as box-and-whisker plots, to show the distribution of values along an axis.
π Boxes indicate the middle 50 percent of the data (that is, the middle two quartiles of the data's distribution).
π You can configure lines, called whiskers, to display all points within 1.5 times the interquartile range (in other words, all points within 1.5 times the width of the adjoining box), or all points at the maximum extent of the data, as shown in the following image:
Creating Box and Whisker plot:
To create a box plot that shows discounts by region and customer segment, follow these steps:
Connect to the Sample - Superstore data source.
Drag the Segment dimension to Columns.
Drag the Discount measure to Rows.
Drag the Region dimension to Columns, and drop it to the right of Segment.
Click Show Me in the toolbar, then select the box-and-whisker plot chart type.
Tableau displays the a box plot:
Drag Region from the Marks card back to Columns, to the right of Segment.
To disaggregate data, select Analysis > Aggregate Measures.
Click the Swap button to swap the axes:
The box plots now flow from left-to-right:
Right-click (control-click on Mac) the bottom axis and select Edit Reference Line.
In Edit Reference Line, Band, or Box dialog box, in the Fill drop-down list, select an interesting color scheme.
Output:
You can see that the discount was the same for all segments in the West. You can also see that the interquartile range (from the 25th percentile to the 75th percentile) for discount was greatest in the Central region for the consumer and corporate segments.
Comments
Post a Comment