cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
%3CLINGO-SUB%20id%3D%22lingo-sub-195334%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Eforce%20all%20histogram%20levels%20on%20bar%20graph%2C%20even%20if%20count%20%3D%200%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195334%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHi%20-%20i%20am%20making%20mulitple%20histogram%20graphs%20with%209%20categorical%20levels%20possible%26nbsp%3B%20-%20i%20would%20like%20all%209%20levels%20to%20show%20on%20the%20axis%2C%20even%20if%20the%20frequency%20count%20is%20zero%20for%20a%20specific%20bin%20on%20a%20specific%20histogram...%20Is%20there%20a%20way%20to%20force%20zero%20counts%20to%20show%20on%20the%20graph%20axis%20(for%20example%2C%20the%20bin%20in%20included%20on%20the%20axis%2C%20but%20there%20is%20no%20bar%20since%20count%20%3D%200)%3F%20I%20think%20having%20all%20levels%20on%20each%20graph%20will%20make%20it%20easier%20for%20the%20reader%20to%20compare%20across%20graphs.%20right%20now%20i%20have%20tried%20using%20the%20distribution%20icon%2C%20but%20each%20histogram%20it%20creates%20has%20a%20different%20assortment%20of%20categorical%20levels.%20I%20am%20using%20JMP%2013.2.1%3C%2FP%3E%3CP%3Ethanks%20in%20advance%20for%20any%20ideas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195337%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20force%20all%20histogram%20levels%20on%20bar%20graph%2C%20even%20if%20count%20%3D%200%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195337%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Ethank%20you!%20your%20advice%20did%20the%20trick!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195336%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20force%20all%20histogram%20levels%20on%20bar%20graph%2C%20even%20if%20count%20%3D%200%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195336%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EI%20assume%20you%20are%20using%20Graph%20Builder.%20There%20may%20be%20better%20ways%20to%20do%20this%2C%20but%20this%20should%20work.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20recommend%20using%20the%20Value%20Ordering%20property%20so%20that%20each%20graph%20will%20have%20the%20same%20order%20on%20the%20x-axis.%3C%2FP%3E%0A%3CP%3EThen%20add%20a%20column%20of%20all%201's%20to%20the%20table%2C%20call%20this%20column%20Freq.%20use%20a%20pre-selected%20role%20of%20Frequency%20for%20this%20column.%3C%2FP%3E%0A%3CP%3ENow%20whenever%20you%20have%20a%20graph%20where%20a%20level%20is%20missing%2C%20add%20the%20level%2C%20but%20put%20a%200%20in%20the%20Freq%20column.%20This%20should%20make%20it%20appear%20on%20the%20graph.%3C%2FP%3E%0A%3CP%3EI%20have%20included%20a%20sample%20file%20with%20an%20example%20where%20level%20D%20is%20missing.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-774131%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20force%20all%20histogram%20levels%20on%20bar%20graph%2C%20even%20if%20count%20%3D%200%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-774131%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FColumn-Property-Inclusive-Values%2Fm-p%2F730865%23U730865%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-idea-thread%20lia-fa-icon%20lia-fa-idea%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%3CLI-EMOJI%20id%3D%22lia_folded-hands%22%20title%3D%22%3Amanos_unidas_para_la_oraci%C3%B3n%3A%22%3E%3C%2FLI-EMOJI%3E%20Column%20Property%3A%20Inclusive%20Values%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewill%20fix%20this%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3Einclusive%3F%3CBR%20%2F%3Ewhat's%20the%20best%20word%20to%20describe%20this%20functionality%3F%3CBR%20%2F%3E%22forced%20values%22%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
ksteinmann
Level I

force all histogram levels on bar graph, even if count = 0?

Hi - i am making mulitple histogram graphs with 9 categorical levels possible  - i would like all 9 levels to show on the axis, even if the frequency count is zero for a specific bin on a specific histogram... Is there a way to force zero counts to show on the graph axis (for example, the bin in included on the axis, but there is no bar since count = 0)? I think having all levels on each graph will make it easier for the reader to compare across graphs. right now i have tried using the distribution icon, but each histogram it creates has a different assortment of categorical levels. I am using JMP 13.2.1

thanks in advance for any ideas

1 ACCEPTED SOLUTION

Accepted Solutions

Re: force all histogram levels on bar graph, even if count = 0?

I assume you are using Graph Builder. There may be better ways to do this, but this should work.

 

I would recommend using the Value Ordering property so that each graph will have the same order on the x-axis.

Then add a column of all 1's to the table, call this column Freq. use a pre-selected role of Frequency for this column.

Now whenever you have a graph where a level is missing, add the level, but put a 0 in the Freq column. This should make it appear on the graph.

I have included a sample file with an example where level D is missing.

Dan Obermiller

View solution in original post

3 REPLIES 3

Re: force all histogram levels on bar graph, even if count = 0?

I assume you are using Graph Builder. There may be better ways to do this, but this should work.

 

I would recommend using the Value Ordering property so that each graph will have the same order on the x-axis.

Then add a column of all 1's to the table, call this column Freq. use a pre-selected role of Frequency for this column.

Now whenever you have a graph where a level is missing, add the level, but put a 0 in the Freq column. This should make it appear on the graph.

I have included a sample file with an example where level D is missing.

Dan Obermiller
ksteinmann
Level I

Re: force all histogram levels on bar graph, even if count = 0?

thank you! your advice did the trick!

hogi
Level XII

Re: force all histogram levels on bar graph, even if count = 0?

🙏 Column Property: Inclusive Values 

will fix this issue.

inclusive?
what's the best word to describe this functionality?
"forced values"?