cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
hogi
Level XII

Hide Level from a plot

The Configure Levels menu provides a very elegant way to change the levels which are displayed in a plot. One can rename and combine levels.

 

Is there also an option to hide levels?

 

hogi_0-1690622679937.png

1 ACCEPTED SOLUTION

Accepted Solutions
ron_horne
Super User (Alumni)

Re: Hide Level from a plot

Hi @hogi ,

if it is the first or last category you may be able to exclude it by changing the axis settings as such.
this can also be done manually with the grabber tool.
let us know if it works.

ron_horne_1-1690810546443.png

 

 

View solution in original post

6 REPLIES 6

Re: Hide Level from a plot

Hi @hogi ,

 

to my knowledge only by adding a local data filter:

Florian_Vogt_0-1690789006744.png

 

Best

Florian

 

hogi
Level XII

Re: Hide Level from a plot

Hm, the Data Filter will remove the corresponding rows from everywhere in the plot -  not just remove the label from one axis.

 

hogi_0-1690793133403.png

 

 

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
	Variables( X( :height ), X( :sex ), Y( :weight ), Color( :sex ) ),
	Elements(
		Position( 1, 1 ),
		Points( X, Y, Legend( 24 ) ),
		Smoother( X, Y, Legend( 25 ) )
	),
	Elements( Position( 2, 1 ), Points( X, Y, Legend( 26 ) ) ),
	Local Data Filter( Add Filter( columns( :sex ), Where( :sex == "F" ) ) )
)

 

ron_horne
Super User (Alumni)

Re: Hide Level from a plot

Hi @hogi ,

if it is the first or last category you may be able to exclude it by changing the axis settings as such.
this can also be done manually with the grabber tool.
let us know if it works.

ron_horne_1-1690810546443.png

 

 

hogi
Level XII

Re: Hide Level from a plot

Hi @ron_horne . This is a nice workaround which will work for simple plots like here for Big Class.

Good, that I can make the level  "last" by adjusting the Levels settings

 

But the workaround is kind of fragile - the position will depend on the # of of labels in the current data set.

And it gets very difficult to count if multiple columns are used in a hierarchy on the Axis.

ron_horne
Super User (Alumni)

Re: Hide Level from a plot

@hogi 

another way would be to recode the categories into a new column. then you can group all the categories you want to hide and set them to be first or last.
hiding (not excluding) in general and of a category (not a row) is a bit questionable from an objective analytical perspective. that would be my guess as to why it is not easily available in the software.

hogi
Level XII

Re: Hide Level from a plot


@ron_horne wrote:

hiding (not excluding) in general and of a category (not a row) is a bit questionable from an objective analytical perspective.


Yes, could be.