Follow

Can I create adjacent histograms in Grapher?

There is not currently a way to create adjacent histograms in Grapher. But, there is a work around that will work to display the data in the same manner. To do this, create a histogram from each group separately. Export the data and create adjacent bar charts from the exported data. The steps below detail how to do this.

 

  1. Create a histogram for the first group using the Home | New Graph | Statistical | Vertical Histogram (Grapher 12 histogram) command.
  2. In the Object Manager, click on Histogram 1 to select it.
  3. Set any properties, including the bin size, worksheet rows, etc. Only the data from the first group should be used.
  4. Click the Graph Tools | Plot Tools | Export Data command. A new worksheet is created.
  5. The worksheet separates out the data into bins, counts, and frequency. I would recommend changing the column C (Upper Limit) using the Data Tools | Data | Transform command. Use the equation C=C-5, where 5 is half of the bin width.
  6. Repeat the above steps 1 - 5 with each of the histogram groups.
  7. In a new plot window, click the Home | New Graphs | Bar | Vertical Bar Chart (Grapher 12 bar chart) command.
  8. Select the first data file created with step 4 and click Open.
  9. Click on the bar chart to select it.
    1. In the Property Manager, click on the Plot tab.
    2. Change the X column to Column C.
    3. Change the Y column to Column B.
    4. Click on the Fill tab.
    5. Change the Foreground color to the desired color.
  10. Click the Graphs | Add to Graph | Plot command.
  11. Select Vertical Bar Chart and click OK.
  12. Click OK in the Choose Axes dialog.
  13. Select the second worksheet created with step 4 and click Open.
  14. Click on the new bar chart to select it.
    1. In the Property Manager, click on the Plot tab.
    2. Change the X column to Column C.
    3. Change the Y column to Column B.
    4. Click on the Fill tab.
    5. Change the Foreground color to the desired color.
  15. Repeat steps 10-14 for each additional histogram group.
  16. With any of the bar charts selected, click on the Bar Groups tab in the Property Manager.
  17. In the Bar Chart 1 field, click New Group. Group 1 appears in the field.
  18. For each of the Bar Chart fields, select the Group 1 option.
  19. Click on the Plot tab.
  20. Change the Stacking option from Stacked to Adjacent.

 

The histogram is now displayed with each group a separate color and the histogram bars adjacent to each other.

 

Updated December 05, 2017

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.