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%3EConfronto%20dei%20mezzi%20Analisi%20unidirezionale%20...%20come%20ordinare%20dinamicamente%20i%20boxplot%20affiancati%20in%20base%20al%20valore%20medio%20da%20sinistra%20a%20destra%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228151%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EAlla%20ricerca%20di%20un%20modo%20automatizzato%20per%20ordinare%20automaticamente%20i%20box%20plot%20affiancati%20in%20base%20al%20valore%20medio%20da%20sinistra%20a%20destra%20...%20e%20per%20dinamica%20intendo%20essere%20in%20grado%20di%20farlo%20senza%20problemi%20al%20volo%20in%20risposta%20a%20modifiche%20nel%20filtro%20dati%20locali%20e%2Fo%20nella%20colonna%20Interruttore.Grazie%20in%20anticipo!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228446%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Confronto%20mezzi%20Analisi%20unidirezionale%20...%20come%20ordinare%20dinamicamente%20boxplot%20affiancati%20in%20base%20al%20valore%20medio%20da%20sinistra%20a%20destra%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228446%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Es%C3%AC%20usando%20Fit%20Y%20by%20X%20proprio%20come%20mi%20%C3%A8%20stato%20insegnato%20nel%20mio%20primo%20corso%20di%20statistica%20basato%20su%20JMP%20nel%201997%20a%20Portland%2C%20nell'Oregon%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228425%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Confronto%20mezzi%20Analisi%20unidirezionale%20...%20come%20ordinare%20dinamicamente%20boxplot%20affiancati%20in%20base%20al%20valore%20medio%20da%20sinistra%20a%20destra%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%3EQuale%20piattaforma%20JMP%20stai%20utilizzando%3CSTRONG%3E%20Adatta%20Y%20per%20X%3C%2FSTRONG%3E%20o%20qualcos'altro%3F%20In%20cima%20alla%20mia%20testa%2C%20se%20si%20utilizza%20Fit%20Y%20per%20X%2C%20userei%20uno%20script%20personalizzato%20per%20aggiungere%20il%20filtro%20dati%20e%20aggiungere%20ad%20esso%20un%20gestore%20filtro%20dati.%20Questo%20%C3%A8%20un%20po'%20coinvolto.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESe%20stai%20utilizzando%20Graph%20Builder%20per%20disegnare%20i%20tuoi%20boxplot%2C%20puoi%20fare%20clic%20con%20il%20pulsante%20destro%20del%20mouse%20sull'asse%20X%20(asse%20di%20gruppo)%20e%20selezionare%20quale%20Ordina%20per%20statistica%2C%20l'impostazione%20predefinita%20%C3%A8%20la%20media%2C%20e%20Seleziona%20quale%20variabile%20Y%20ordinare%20in%20ordine%20crescente%20o%20decrescente.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELo%20script%20seguente%20apre%20la%20tabella%20di%20dati%20di%20esempio%20JMP%20SATByYear.jmp%20e%20crea%20un%20boxplot%20di%20Generatore%20di%20grafici%20di%20SAT%20Math%20vs.%20State%20con%20un%20filtro%20dati%20locale%20per%20regione.Ora%20seleziona%20una%20o%20pi%C3%B9%20regioni%20e%20l'ordine%20viene%20aggiornato%20automaticamente.%20Passa%20da%20discendente%20a%20ascendente.Puoi%20fare%20tutto%20questo%20punta%20e%20clicca.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESpero%20che%20questo%20soddisfi%20le%20tue%20esigenze.%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