histogram bins, stacking graphs

DataGraph Forums Technical Support Support Desk histogram bins, stacking graphs

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6770
    palmer robert j nihnidcr e
    Participant

      I want to set the bins to particular sizes in the histogram command.  In other words, I want the bars to show: 2-20 units, 21-500 units, 501-2500 units, etc.

      Also how do you “stack” graphs, i.e., show one histogram below another in the same graph window (or combine them into another window)?  Is this only possible by exporting the graphs into another program?

      #6771
      dgteam
      Moderator

        The histogram command does not have a custom bin option, but you can use a Plot action column, where the action option is set to ‘Bin’.

        Here is an example where the bin locations are specified using a column. Note that the x and y input must both have something there for this column to work, so they are both set to the values column.

        CustomBins

        Then you could graph using a Bars command. The label column was typed in manually.

        CustomBins2

        As the bins you are specifying are logarithmic, you might want to try using a Histogram command with the Log option and also set the x-axis to a log scale.  For the same data shown above,  you get the following graph where x-axis locations are on the number line.

        LogBins

        For stacking graphs, use the Split x-axis or Split y-axis options on the axis settings.  Then you can place different commands above and below or side-by-side.

        We did a webinar on Panel graphs that you might want to check out for a detailed demo.

        Let us know if this helps or if you have any follow up questions.

         

         

        #6776
        palmer robert j nihnidcr e
        Participant

          Thanks – this was helpful.  However, it is unclear to me how the “count” column was obtained.  Is this though some sort of sort function?  I don’t see any equation that places the original values into the three bins.

          #6780
          dgteam
          Moderator

            Please review the Plot action documentation and see if this describes what you need to do.

            We just modified the article to clarify.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.

          DataGraph Forums Technical Support Support Desk histogram bins, stacking graphs