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 Graphs | Create | Statistical | Vertical Histogram (Grapher 12 histogram) command.
  2. Click on the Histogram 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 Graphs | Plot | 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 Cells | 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 Graphs | Create | 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 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 Chart Groups tab in the Property Manager.
  17. Click the Add button next to the Add group option.
  18. Check the boxes next to each of the bar charts.
  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 September 30, 2016

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.