cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
john_madden
Level VI

Graph Builder histogram question

I'm having trouble getting the display I want out of Graph Builder, and I'd like some help.

My data is a 3-level-categorical test result; the test is performed monthly.

  • My result column is 1-byte integer, ordinal, with value labels (0 = "low", 1 = "medium", 2 = "high").
  • My time column is numeric, continuous, m/y format. (The test is perfomed once a month on the same calendar day each month.)

I would like to get a histogram graph where the x-axis is the month of the test, and the y-axis is the count of each result level. I would like one bar for each month, and I want the results to be stacked in that single bar, with each level is a different color. I don't want all the bars scaled to the same total height; I want the total height of the bar to be proportional to the total number of tests.

I thought this would be easy, but for some reason I can't quite get what I want. Help?

1 ACCEPTED SOLUTION

Accepted Solutions
dale_lehman
Level VII

Re: Graph Builder histogram question

Attached might be what you are looking for - execute the embedded script to see.  If this is what you want, I think your main problem was having month as a continuous variable, rather than nominal.

View solution in original post

2 REPLIES 2
dale_lehman
Level VII

Re: Graph Builder histogram question

Attached might be what you are looking for - execute the embedded script to see.  If this is what you want, I think your main problem was having month as a continuous variable, rather than nominal.

john_madden
Level VI

Re: Graph Builder histogram question

Thanks, Dale! That worked -- and it even works with month being continuous.

Recommended Articles