Table of Contents |
Create a box-and-whisker diagram Set Adjustable or Variable Box Widths |
Create a box-and-whisker diagram
A box plot compares the difference among median values. In Grapher, you can create a box diagram and display a confidence interval for the median by following the steps below:
- Click the Home | New Graph | Statistical | Vertical Box Plot, the Home | New Graph | Statistical | Notched Vertical Box Plot, the Home | New Graph | Statistical | Horizontal Box Plot, or the Home | New Graph | Statistical | Notched Horizontal Box Plot command.
- In the Open Worksheet dialog, select the data file and click Open. The default box-whisker plot is created.
- Click on the box plot layer in the Object Manager to select it (underneath Graph 1).
- In the Property Manager, click on the Plot tab.
- From the Plot properties tab you can
- adjust the first and last variable,
- choose to use data in rows,
- create a grouped box plot,
- notch the boxes,
- adjust the statistics being graphed,
- and much more!
- See the Box Plot Properties help page for more details about each available property.
A Vertical and Horizontal Notched Box-Whisker Plots in Grapher.
Set Adjustable or Variable Box Widths
If you'd like to layer box plots, or represent the size of data populations in each sample dataset, you can control the width of box plots in Grapher. To change the width of a boxes in a box plot:
- Select the Box Plot in the Object Manager.
- In the Property Manager, click the Plot tab.
- Expand the Width section.
- Change the Box width (percentage) to change the width for all boxes at the same time.
- Set the Type field to Variable, Fixed, or leave it set to Auto.
- Variable to vary the size based on the number of sample entries in each set of data. When using the Variable option the width of each box is determined via the sample count in that box vs the sum of the sample counts of all boxes.
- Fixed to choose a set width for each box plot.
- Auto to have Grapher automatically determine an appropriate box width
Box plot with Variable Widths applied.
Use Data Filter to Clip Box Plot Limits
The data filter makes it possible to exclude or include specific criteria from your data without removing these data from your file. You can use the data filter with Box Plots in Grapher.
- In the Object Manager, select the Box Plot.
- In the Property Manager, click the Data Limits tab.
- Click Set in the Criteria Filter section.
- Delete the existing values in the Clipping section and replace with desired values. Learn more about Clipping in Grapher's Help.
- Fill out the Exclude data or Include data fields for your desired results and click OK.
Note
Removing data from a Box Plot using Data Filter may affect the statistical shape or distribution of that box, depending on the chosen settings for Box Edges and Whiskers.
Learn more in Grapher's Help.
Create Irregularly Spaced Box Plots
There are two possible workflows for creating irregularly spaced box plots in Grapher.
If your box plot categories are numeric, complete the steps below:
- Click Home | New Graph | Statistical | Vertical Grouped Box Plot ().
- In the Open Worksheet dialog, select your data file and click Open.
- Click the new box plot in the Object Manager to select it.
- Click the Plot tab in the Property Manager.
- Set the First Variable and Last Variable to the same data column. This enables the box plot axis to use a linear scale.
- Click the Box Plot Axis in the Object Manager to select it.
- Click the Axis tab in the Property Manager.
- Click in the Scale field and select Linear or the desired scale.
Create irregularly spaced box plots using a grouped box plot with linear axis.
If your box plot categories are alpha-numeric, complete the steps below to space box plots at irregular intervals along the axis.
- Click on the box plot in the Object Manager to select it.
- In the Property Manager, click on the Plot tab.
- Change the Last variable to be the same as the First variable. Only one box is now plotted.
- In the Object Manager, click on the Box Plot Axis 1 to select it.
- In the Property Manager, click on the Axis tab.
- Change the Length to twice the desired width of the bar. If the box should be 0.5 inches wide, make the Length equal to 1.0 inches.
- Click the Graph Tools | Add to Graph | Axis | X Axis.
- In the Position X Axis dialog, click At the bottom end of.
- Check the box next to Disable tick marks, and Disable labels, and then click OK.
- Click the Graph Tools | Add to Graph | Plot | Box Plot - Vertical Plot command.
- In the Choose Axes dialog click Position click OK to create a new X axis.
- Select the data file and click Open.
- Select the new box plot in the Object Manager.
- Repeat steps 2 through 6 for the new box plot.
- In the plot window, click and drag the new box plot axis to move it to the desired location.
- Repeat steps 10-14 for each additional box plot.
- To keep your boxes relatively positioned so that they move with other plot changes, link your boxes to the appropriate axis in the Link Axis tab of the Property Manager.
Create variable spaced box plots using multiple box-plot axes.
Updated March 2024
Comments
Please sign in to leave a comment.