cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-228151%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9D%87%E5%80%BC%E6%AF%94%E8%BC%83%E5%96%AE%E5%90%91%E5%88%86%E6%9E%90...%E5%A6%82%E4%BD%95%E6%8C%89%E5%B9%B3%E5%9D%87%E5%80%BC%E5%BE%9E%E5%B7%A6%E5%88%B0%E5%8F%B3%E5%8B%95%E6%85%8B%E6%8E%92%E5%BA%8F%E4%B8%A6%E6%8E%92%E7%AE%B1%E7%B7%9A%E5%9C%96%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228151%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%B0%8B%E6%89%BE%E4%B8%80%E7%A8%AE%E8%87%AA%E5%8B%95%E5%8C%96%E7%9A%84%E6%96%B9%E5%BC%8F%E4%BE%86%E8%87%AA%E5%8B%95%E6%8E%92%E5%BA%8F%E4%B8%A6%E6%8E%92%E7%AE%B1%E5%BD%A2%E5%9C%96%EF%BC%8C%E6%8C%89%E5%BE%9E%E5%B7%A6%E5%88%B0%E5%8F%B3%E7%9A%84%E5%B9%B3%E5%9D%87%E5%80%BC......%E5%8B%95%E6%85%8B%E6%88%91%E7%9A%84%E6%84%8F%E6%80%9D%E6%98%AF%E8%83%BD%E5%A4%A0%E5%8B%95%E6%85%8B%E7%84%A1%E7%B8%AB%E5%9C%B0%E5%9F%B7%E8%A1%8C%E6%AD%A4%E6%93%8D%E4%BD%9C%E4%BB%A5%E9%9F%BF%E6%87%89%E6%9C%AC%E5%9C%B0%E6%95%B8%E6%93%9A%E9%81%8E%E6%BF%BE%E5%99%A8%E5%92%8C%2F%E6%88%96%E5%88%97%E7%9A%84%E8%AE%8A%E5%8C%96%E5%88%87%E6%8F%9B%E5%99%A8%E3%80%82%E6%8F%90%E5%89%8D%E8%87%B4%E8%AC%9D%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228446%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9D%87%E5%80%BC%E6%AF%94%E8%BC%83%E5%96%AE%E5%90%91%E5%88%86%E6%9E%90...%E5%A6%82%E4%BD%95%E6%8C%89%E5%B9%B3%E5%9D%87%E5%80%BC%E5%BE%9E%E5%B7%A6%E5%88%B0%E5%8F%B3%E5%8B%95%E6%85%8B%E6%8E%92%E5%BA%8F%E4%B8%A6%E6%8E%92%E7%AE%B1%E7%B7%9A%E5%9C%96%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228446%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%98%AF%E7%9A%84%EF%BC%8C%E4%BD%BF%E7%94%A8%20Fit%20Y%20by%20X%20%E5%B0%B1%E5%83%8F%E6%88%91%E5%9C%A8%201997%20%E5%B9%B4%E5%9C%A8%E4%BF%84%E5%8B%92%E5%B2%A1%E5%B7%9E%E6%B3%A2%E7%89%B9%E8%98%AD%E5%B8%82%E7%9A%84%E7%AC%AC%E4%B8%80%E5%80%8B%E5%9F%BA%E6%96%BC%20JMP%20%E7%9A%84%E7%B5%B1%E8%A8%88%E8%AA%B2%E7%A8%8B%E4%B8%AD%E6%89%80%E6%95%99%E7%9A%84%E4%B8%80%E6%A8%A3%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228425%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9D%87%E5%80%BC%E6%AF%94%E8%BC%83%E5%96%AE%E5%90%91%E5%88%86%E6%9E%90...%E5%A6%82%E4%BD%95%E6%8C%89%E5%B9%B3%E5%9D%87%E5%80%BC%E5%BE%9E%E5%B7%A6%E5%88%B0%E5%8F%B3%E5%8B%95%E6%85%8B%E6%8E%92%E5%BA%8F%E4%B8%A6%E6%8E%92%E7%AE%B1%E7%B7%9A%E5%9C%96%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228425%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F7154%22%20target%3D%22_blank%22%3E%40galactus3000%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%E5%93%AA%E5%80%8B%20JMP%20%E5%B9%B3%E5%8F%B0%3CSTRONG%3E%E7%94%A8%20X%20%E6%93%AC%E5%90%88%20Y%3C%2FSTRONG%3E%E6%88%96%E8%80%85%E6%98%AF%E5%85%B6%E4%BB%96%E6%9D%B1%E8%A5%BF%EF%BC%9F%20%E5%9C%A8%E6%88%91%E7%9A%84%E8%85%A6%E6%B5%B7%E4%B8%AD%EF%BC%8C%E5%A6%82%E6%9E%9C%E4%BD%BF%E7%94%A8%20Fit%20Y%20by%20X%EF%BC%8C%E6%88%91%E5%B0%87%E4%BD%BF%E7%94%A8%E8%87%AA%E5%AE%9A%E7%BE%A9%E8%85%B3%E6%9C%AC%E4%BE%86%E6%B7%BB%E5%8A%A0%E6%95%B8%E6%93%9A%E9%81%8E%E6%BF%BE%E5%99%A8%E4%B8%A6%E5%90%91%E5%85%B6%E6%B7%BB%E5%8A%A0%E6%95%B8%E6%93%9A%E9%81%8E%E6%BF%BE%E5%99%A8%E8%99%95%E7%90%86%E7%A8%8B%E5%BA%8F%E3%80%82%20%E9%80%99%E6%9C%89%E9%BB%9E%E6%B6%89%E5%8F%8A%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E5%A6%82%E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80%82%20%E7%94%B1%E4%B8%8B%E9%99%8D%E8%AE%8A%E7%82%BA%E4%B8%8A%E5%8D%87%E3%80%82%E4%BD%A0%E5%8F%AF%E4%BB%A5%E5%81%9A%E6%89%80%E6%9C%89%E9%80%99%E4%BA%9Bvoa%20point%20%26amp%3B%20click%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E6%88%91%E5%B8%8C%E6%9C%9B%E9%80%99%E8%83%BD%E6%BB%BF%E8%B6%B3%E6%82%A8%E7%9A%84%E9%9C%80%E6%B1%82%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(1)%3B%0Adt%20%3D%20Open(%22%24Sample_data%2FSATByYear.jmp%22)%3B%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Size(%20534%2C%20464%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%0A%20%20X(%20%3AState%2C%20Order%20By(%20%3ASAT%20Math%2C%20Descending%2C%20Order%20Statistic(%20%22Mean%22%20)%20)%20)%2C%0A%20%20Y(%20%3ASAT%20Math%20)%0A%20)%2C%0A%20Elements(%20Box%20Plot(%20X%2C%20Y%2C%20Legend(%206%20)%20)%20)%2C%0A%20Local%20Data%20Filter(%0A%20%20Add%20Filter(%0A%20%20%20columns(%20%3ARegion%20)%2C%0A%20%20%20Display(%20%3ARegion%2C%20Size(%20160%2C%20120%20)%2C%20List%20Display%20)%0A%20%20)%0A%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19573iE41EB67AA1B9ACE5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
galactus3000
Level IV

Means Comparison Oneway Analysis ... how to dynamically order side-by-side boxplots by mean value left to right

Looking for an automated way to automatical order side-by-side box plots by mean value left to right ... and by dynamically I mean being able to seamlessly do this on the fly in response to change in Local Data Filter and/or Column Switcher.  Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
gzmorgan0
Super User (Alumni)

Re: Means Comparison Oneway Analysis ... how to dynamically order side-by-side boxplots by mean value left to right

@galactus3000,

 

Which JMP platform are you using Fit Y by X or something else? Off the top of my head, if using Fit Y by X, I would use a custom script to add the data filter and add to it a Data Filter Handler. That is a bit involved.

 

If you are using Graph Builder to draw your boxplots, you can right click in the X-Axis (group axis) and select which Order by Statistic, default is the mean, and Select which Y variable to order by either ascending or desending.

 

The script below opens the JMP sample data table SATByYear.jmp and creates a Graph Builder boxplot of SAT Math vs. State with a Local Data Filter for Region.  Now select one or several regions and ordering is updated automatically. Change from descending to ascending.  You can do all of this voa point & click.

 

I hope this meets your needs.

 

Names Default to Here(1);
dt = Open("$Sample_data/SATByYear.jmp");

gb = dt << Graph Builder(
	Size( 534, 464 ),
	Show Control Panel( 0 ),
	Variables(
		X( :State, Order By( :SAT Math, Descending, Order Statistic( "Mean" ) ) ),
		Y( :SAT Math )
	),
	Elements( Box Plot( X, Y, Legend( 6 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Region ),
			Display( :Region, Size( 160, 120 ), List Display )
		)
	)
);

   image.png

View solution in original post

2 REPLIES 2
gzmorgan0
Super User (Alumni)

Re: Means Comparison Oneway Analysis ... how to dynamically order side-by-side boxplots by mean value left to right

@galactus3000,

 

Which JMP platform are you using Fit Y by X or something else? Off the top of my head, if using Fit Y by X, I would use a custom script to add the data filter and add to it a Data Filter Handler. That is a bit involved.

 

If you are using Graph Builder to draw your boxplots, you can right click in the X-Axis (group axis) and select which Order by Statistic, default is the mean, and Select which Y variable to order by either ascending or desending.

 

The script below opens the JMP sample data table SATByYear.jmp and creates a Graph Builder boxplot of SAT Math vs. State with a Local Data Filter for Region.  Now select one or several regions and ordering is updated automatically. Change from descending to ascending.  You can do all of this voa point & click.

 

I hope this meets your needs.

 

Names Default to Here(1);
dt = Open("$Sample_data/SATByYear.jmp");

gb = dt << Graph Builder(
	Size( 534, 464 ),
	Show Control Panel( 0 ),
	Variables(
		X( :State, Order By( :SAT Math, Descending, Order Statistic( "Mean" ) ) ),
		Y( :SAT Math )
	),
	Elements( Box Plot( X, Y, Legend( 6 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Region ),
			Display( :Region, Size( 160, 120 ), List Display )
		)
	)
);

   image.png

galactus3000
Level IV

Re: Means Comparison Oneway Analysis ... how to dynamically order side-by-side boxplots by mean value left to right

yes using Fit Y by X just like I was taught in my first-ever JMP-based statistics course in 1997 in Portland Oregon

Recommended Articles