OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
 
Skip Navigation Links
All BooksExpand All Books
TutorialsExpand Tutorials
GraphingExpand Graphing
StatisticsExpand Statistics

6.10.3 I Shaped Box Plot

Summary

Origin's box plot is highly customizable. This tutorial shows how to create a I-Shaped box chart with overlapping data points and customized percentiles.

I Shaped Box Plot 01.png

Minimum Origin Version Required: 2015 SR0

What you will learn

  • Customize box plot settings
  • Customize the axis dialog for box plots
  • Add a line object to a box plot

Steps to Create a I-Shaped Box Chart with Data Point

This tutorial is associated with <Origin EXE Folder>\Samples\Tutorial Data.opj.

  1. Open the Tutorial Data.opj and browse to folder I-Shaped Box.
  2. Activate workbook Book1, Sheet1. Highlight columns A through K and then select Plot>2D: Box: Box Chart. Next, select and delete the legend object from the graph.
  3. Double-click on one of the plot boxes to bring up the Plot Details dialog box. Go to the Box tab and set Type to Box + Data Overlap, Style to I-shaped Box and Whisker Range to Min-Max, and check Outliers box.
    I Shaped Box Plot 02.png
  4. Go to the Data tab and set Data Width (%) to 0.
    I Shaped Box Plot 03.png
  5. Click OK to apply the settings.
    I Shaped Box Plot 04.png

Further Customizations to Box Style

  1. Double-click on one of the plot boxes to bring up the Plot Details dialog box again. Go to the Group tab and set Border Color Increment to None.
    I Shaped Box Plot 05.png
  2. Go to the Symbol tab, set symbol Shape as 1 Square and Interior as Open, then set both Edge Color and Fill Color to 15 Orange. Clear Follow line transparency and set the Transparency slider to 80%.
    I Shaped Box Plot 06.png
  3. Go to the Pattern tab and set Border Color to Purple and Width to 1.5.
    I Shaped Box Plot 07.png
  4. Go to the Spacing tab and set Gap Between Boxes(in %) to 0.
  5. Go to the Percentile tab and duplicate the settings as shown below for Type and check Custom Percentiles at <P, 100-P> box.
    I Shaped Box Plot 08.png
  6. Go to the Lines tab and duplicate settings as shown below.
    I Shaped Box Plot 09.png
  7. Click OK to apply the settings.

Further Customizations to Axes

  1. Double-click on the X axis to open the Axis Dialog box. Go to the Scale tab and set Minor Ticks Count to 1.
    I Shaped Box Plot 11.png
  2. Go to the Format tab under Tick Labels page and hold Ctrl key to select both Bottom and Left icons on left panel and set label Color to Black.
    I Shaped Box Plot 12.png
  3. Go to the Grids tab and click to select only Vertical icon on left panel and duplicate Minor Grid Lines settings as shown below.
    I Shaped Box Plot 10.png
  4. Go to Line and Ticks tab and click on the Top icon on left panel and check the Show Line and Ticks box to show top axis.
  5. Hold Ctrl key to select both Bottom and Top icons on left panel, duplicate settings as shown below and click Apply to see your changes.
    I Shaped Box Plot 13.png
  6. To customize the Y Axis, go to Scale tab and click Vertical icon on left panel and duplicate the settings as shown below.
    I Shaped Box Plot 14.png
  7. Go to the Title tab and type Temperature (\+(o)F) into the Text box.
  8. Go to Grids tab and check the Opposite box under Additional Lines node.
    I Shaped Box Plot 15.png
  9. Go to Line and Ticks tab and set Color under Line node to be Gray.
    I Shaped Box Plot 16.png
  10. Click OK to apply your settings.
    I Shaped Box Plot 17.png

Adding a Line to Mark the Mean

  1. Highlight all the columns in Book1. The global mean value will be calculated automatically and shown on the Status bar.
    I Shaped Box Plot 18.png
  2. Activate the graph window and select Graph: Add Straight Line from the menu. In addline dialog, duplicate settings as shown below.
    I Shaped Box Plot 19.png
  3. Right-click on an empty portion of the graph and select Add/Modify Layer Title. Type Weather History for Boston, Fall (Sep, Oct, Nov)
  4. Drag and re-position the axis and layer titles as needed.

There are another two approaches to add such a horizontal line at specified Y value in Axis dialog:

  • Go to the Grid tab, select Vertical in the left panel and then enter the Y value in the Y= text box under the Additional Lines branch. Please note, this option only adds the line, you need add a special tick or just a simple text object to mark this line.
    AddLine 01.png
  • Go to the Reference Lines tab, select Horizontal icon in left panel, add a reference line at Y=55.435 with the label, click Details button to set the style of this line. You might need use the Style toolbar to change the color of the text label.
    AddLine 02.png
 

© OriginLab Corporation. All rights reserved.