cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-227493%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EPreguntas%20sobre%20gr%C3%A1ficos%20de%20caja%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-227493%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%20%3CBR%20%2F%3E%20Estoy%20haciendo%20algunos%20gr%C3%A1ficos%20de%20cajas%20y%20tengo%20algunos%20problemas%20con%20respecto%20al%20espacio%20entre%20cajas%2C%20etc.%26nbsp%3B%3CBR%20%2F%3EPara%20separar%20los%20puntos%2C%20mov%C3%AD%20G%C3%A9nero%20de%20la%20superposici%C3%B3n%20al%20eje%20X%20(ver%20im%C3%A1genes).%20Sin%20embargo%2C%20el%20espacio%20cambi%C3%B3%20de%20modo%20que%20hay%20m%C3%A1s%20espacio%20vac%C3%ADo%20entre%20las%20cajas.%20Tiene%20sentido%20para%20que%20los%20puntos%20puedan%20verse%20y%20fluctuar.%20Sin%20embargo%2C%20me%20gustar%C3%ADa%20probar%20con%20menos%20espacio%20entre%20y%20usar%20puntos%20transparentes.%20%C2%BFPero%20no%20puede%20encontrar%20ninguna%20soluci%C3%B3n%20%2F%20opci%C3%B3n%20para%20cambiar%20esto%3F%20Adem%C3%A1s%2C%20quisiera%20alguna%20opci%C3%B3n%20para%20colorear%20%2F%20cambiar%20TODOS%20los%20cuadros%20al%20mismo%20tiempo%2C%20como%20mantener%20presionada%20la%20tecla%20Ctrl%20y%20hacer%20clic%20podr%C3%ADa%20haber%20hecho%20...%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3ESin%20puntos%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMPBOX.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19494i8305B6F207F20429%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JMPBOX.PNG%22%20alt%3D%22JMPBOX.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%20Con%20puntos%20y%20sexo%20en%20el%20eje%20X%20en%20lugar%20de%20superposici%C3%B3n.%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMPBOX2.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19495iCCF6958F3F560ADD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JMPBOX2.PNG%22%20alt%3D%22JMPBOX2.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-227893%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Preguntas%20sobre%20gr%C3%A1ficos%20de%20caja%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-227893%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%2F14849%22%20target%3D%22_blank%22%3E%20%40Jonkandonkan%20%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExisten%20m%C3%A9todos%20de%20lenguaje%20de%20script%20JMP%20que%20pueden%20facilitar%20el%20trabajo%20de%20cambiar%20todos%20los%20gr%C3%A1ficos%20de%20caja%20(BoxplotSeg)%20a%20la%20vez.%26nbsp%3B%20Por%20ejemplo%2C%20una%20vez%20que%20se%20encuentra%20la%20ventana%20de%20destino%2C%20digamos%20%3A%3A%20_%20curWin%20representa%20la%20ventana%20actual%2C%20se%20puede%20usar%20algo%20como%20esto.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E_boxseg%20%3D%20(%3A%3A_curWin%20%26lt%3B%26lt%3B%20Child)%20%26lt%3B%26lt%3B%20Xpath(%22%2F%2FBoxPlotSeg%22)%3B%0A%0A_boxseg%20%26lt%3B%26lt%3B%20%7BLine%20Color(%7B0%2C0%2C0%7D)%2C%20Confidence%20Diamond(%200%20)%2C%20Fences(%201%20)%2C%0A%20%20%20%20Line%20Width(%202%20)%2C%20Transparency(1.0)%0A%20%20%20%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETenga%20en%20cuenta%20que%20%3A%3A%20_%20curWin%20se%20puede%20encontrar%20definiendo%20una%20HotKey%20(uso%20Ctrl%20%2B%20Alt%20%2B%20G).%26nbsp%3B%20Sin%20embargo%2C%20el%20script%20se%20vuelve%20un%20poco%20m%C3%A1s%20complicado%20si%20desea%20que%20esto%20se%20haga%20para%20ventanas%20que%20pueden%20tener%20m%C3%BAltiples%20gr%C3%A1ficos%20de%20diagrama%20de%20caja%20y%20si%20desea%20puntos%20y%20no%20rellenos%2C%20o%20rellenos%20con%20un%20color%20de%20superposici%C3%B3n.%26nbsp%3B%20Por%20ejemplo%2C%20para%20diagramas%20de%20caja%20llenos%2C%20cada%20color%20del%20segmento%20de%20diagrama%20de%20caja%20debe%20determinarse%20luego%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E_boxseg%20%3D%20(%3A%3A_curWin%20%26lt%3B%26lt%3B%20Child)%20%26lt%3B%26lt%3B%20Xpath(%22%2F%2FBoxPlotSeg%22)%3B%0A%0Afor(i%3D1%2C%20i%26lt%3B%3Dnitems(_boxseg)%2C%20i%2B%2B%2C%0Afc%20%3D%20_boxseg%5Bi%5D%20%26lt%3B%26lt%3B%20get%20fill%20color%3B%0A_boxseg%5Bi%5D%20%26lt%3B%26lt%3B%20%7BBoxStyle(%22Normal%22)%2C%20Line%20Color(%7B0%2C0%2C0%7D)%2C%20Confidence%20Diamond(%200%20)%2C%20Fences(%201%20)%2C%0A%20%20%20%20Line%20Width(%202%20)%2C%20Transparency(1.0)%2C%20Fill%20Color(fc)%0A%20%20%20%7D%3B%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESe%20puede%20crear%20un%20complemento%20para%20hacer%20esto.%20Incluso%20podr%C3%ADa%20proporcionar%20un%20di%C3%A1logo%2C%20por%20lo%20que%20para%20la%20ventana%20espec%C3%ADfica%20se%20podr%C3%ADa%20activar%20un%20Diamante%20de%20confianza%20o%20la%20mitad%20inferior%2C%20etc.%26nbsp%3B%20A%20continuaci%C3%B3n%20se%20muestra%20una%20captura%20de%20pantalla%2C%20de%20un%20complemento%20simple%20con%20una%20secuencia%20de%20teclas%20de%20acceso%20r%C3%A1pido%20asignadas%20(Ctrl%20%2B%20Alt%20%2B%20G).%20Este%20complemento%20deber%C3%ADa%20ejecutarse%20una%20vez%20para%20cada%20sesi%C3%B3n%20o%20al%20inicio.%26nbsp%3B%20A%20continuaci%C3%B3n%20de%20esta%20captura%20de%20pantalla%20hay%20un%20ejemplo%20de%20un%20diagrama%20de%20caja%20%22Antes%22%20y%20el%20diagrama%20de%20caja%20%22Despu%C3%A9s%22%20que%20escribe%20Ctrl%20%2B%20Alt%20%2B%20G%20mientras%20la%20ventana%20est%C3%A1%20resaltada.%26nbsp%3B%20Si%20puede%20ser%20m%C3%A1s%20preciso%2C%20sobre%20lo%20que%20necesita%2C%20proporcionar%20un%20conjunto%20de%20datos%20y%20una%20secuencia%20de%20comandos%20%2F%20configuraciones%20guardadas%2C%20se%20puede%20crear%20un%20complemento%20que%20probablemente%20funcionar%C3%A1%20en%20la%20mayor%C3%ADa%20de%20los%20casos.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20944px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20944px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19523i7D230632603E6924%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%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Before%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19524i21A02C3AED4491CF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22Before%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EBefore%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3E%20antes%20de%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22After%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19525iBF38AA4C4039AC7E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22After%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAfter%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3E%20Despu%C3%A9s%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228004%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Preguntas%20sobre%20gr%C3%A1ficos%20de%20caja%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228004%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Ehola%20gzmorgan0%3A%20%3CBR%20%2F%3E%20%C2%BFC%C3%B3mo%20puedo%20obtener%20la%20funci%C3%B3n%20de%20complemento%3F%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Jonkandonkan
Level II

Questions regarding box plot graphics

Hi 
Im doing some box plots and got some trouble regarding the spacing between boxed etc. 
To get points separated I moved Gender from overlay to the X-axis (see pictures). However, the spacing changed so thereäs more empty space between boxes. Makes sense so the points can be seen and jittered. However I would like to try with less space between and use transparent points. But can't find any solution/option to change this? Also, would like some option to color/change ALL boxes att the same time, like holding Ctrl and clicking could've done.. 


Without points
JMPBOX.PNG


With points, and sex on X-axis instead of overlay. 
JMPBOX2.PNG


2 REPLIES 2
gzmorgan0
Super User (Alumni)

Re: Questions regarding box plot graphics

@Jonkandonkan,

 

There are JMP Scripting Language methods that can make easy work of changing all boxplots (BoxplotSeg) at once.  For example, once the target window is found, say ::_curWin represents the current window, something like this can be used.

 

 

_boxseg = (::_curWin << Child) << Xpath("//BoxPlotSeg");

_boxseg << {Line Color({0,0,0}), Confidence Diamond( 0 ), Fences( 1 ),
			 Line Width( 2 ), Transparency(1.0)
			};

 

 

Note that ::_curWin can be found by defining a HotKey (I use Ctrl+Alt+G).  However, the script becomes a little more involved if you want this done for windows that might have multiple boxplot graphs and if you are wanting points and not filled, or filled with an overlay color.  For example, for filled boxplots, each boxplot segment color needs to be determined then 

_boxseg = (::_curWin << Child) << Xpath("//BoxPlotSeg");

for(i=1, i<=nitems(_boxseg), i++,
fc = _boxseg[i] << get fill color;
_boxseg[i] << {BoxStyle("Normal"), Line Color({0,0,0}), Confidence Diamond( 0 ), Fences( 1 ),
			 Line Width( 2 ), Transparency(1.0), Fill Color(fc)
			};
);

 

An add-in can be created to do this. It could even provide a dialog, so for the specific window a Confidence Diamond could be turned on or the lower half, etc.  Below is a screen shot, of a simple Add-in with an assigned hot key sequence (Ctrl + Alt + G). This add-in would need to run once for each session or at startup.  Following this screenshot is an example of a "Before" boxplot and the boxplot "After" typing Ctrl + Alt + G while the window is highlighted.  If you can be more precise, about what you need, provide a data set and saved script/settings, an Add-In can be created that will likely work for most cases.

 

image.png

 

BeforeBeforeAfterAfter

 

EricTsai
Level III

Re: Questions regarding box plot graphics

hi gzmorgan0:
How can I get the add-in function?