cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-121476%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ELineas%20simples%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121476%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEsto%20parece%20que%20deber%C3%ADa%20ser%20bastante%20f%C3%A1cil%2C%20pero%20no%20lo%20es%2C%20y%20es%20algo%20con%20lo%20que%20me%20encuentro%20a%20menudo%20y%20me%20pregunto%20si%20hay%20una%20manera%20m%C3%A1s%20f%C3%A1cil.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAqu%C3%AD%20hay%20un%20ejemplo%20de%20conjunto%20de%20datos%20de%20%3CA%20href%3D%22https%3A%2F%2Fblog.scoutingmagazine.org%2F2019%2F02%2F11%2F2018-merit-badge-rankings-a-deep-dive-into-the-official-numbers-from-1-to-137%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%20https%3A%2F%2Fblog.scoutingmagazine.org%2F2019%2F02%2F11%2F2018-merit-badge-rankings-a-deep-dive-into-the-official-numbers-from-1-1to-137%20%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20604px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ss.png%22%20style%3D%22width%3A%20604px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F15731i4213295E2AA7A9CB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ss.png%22%20alt%3D%22ss.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMe%20gustar%C3%ADa%20construir%20una%20sola%20parcela%20con%20una%20l%C3%ADnea%20para%20cada%20insignia%20de%20m%C3%A9rito.%20%26nbsp%3BHabr%C3%A1%20un%20grupo%20uno%20encima%20del%20otro%2C%20pero%20supongamos%20que%20estoy%20interesado%20en%20los%20destacados%2C%20las%20l%C3%ADneas%20en%20la%20parte%20superior%20e%20inferior.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPas%C3%A9%20por%20la%20molestia%20de%20hacerlo%20en%20Excel%20para%20mostrar%20lo%20que%20estoy%20tratando%20de%20hacer%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20568px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ss2.png%22%20style%3D%22width%3A%20568px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F15732iB2B17EB5FAB45907%2Fimage-dimensions%2F568x412%3Fv%3Dv2%22%20width%3D%22568%22%20height%3D%22412%22%20role%3D%22button%22%20title%3D%22ss2.png%22%20alt%3D%22ss2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%C2%BFHay%20una%20buena%20manera%20de%20hacer%20esto%20con%20JMP%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140604%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20lineas%20simples%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140604%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHe%20pasado%20por%20esto%2C%20pero%20algunas%20partes%20no%20est%C3%A1n%20muy%20claras%2C%20por%20ejemplo%2C%20%22Superposici%C3%B3n%22%20dice%20que%20%22subgrupos%20y%20colores%22%2C%20pero%20%22Color%22%20parece%20hacer%20lo%20mismo%20(%C2%BFexcepto%20para%20subgrupos%3F%20).%20%26nbsp%3BIncluso%20despu%C3%A9s%20de%20leer%20esa%20secci%C3%B3n%2C%20no%20habr%C3%ADa%20sabido%20hacer%20lo%20que%20hizo%20Wayne%2C%20pero%20gracias%20a%20%C3%A9l%20lo%20entiendo%20mejor.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-135764%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20lineas%20simples%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-135764%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMe%20alegra%20que%20la%20soluci%C3%B3n%20de%20Wayne%20te%20haya%20funcionado.%20Graph%20Builder%20es%20muy%20poderoso%2C%20pero%20requiere%20cierto%20estudio%20para%20dominarlo.%20Esta%20vez%20vale%20la%20pena.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EConsulte%20Ayuda%26gt%3B%20Libros%26gt%3B%20Gr%C3%A1ficos%20esenciales.%20Hay%20unos%20principios%20generales%20y%20ejemplos%20espec%C3%ADficos%20para%20guiarlo%20la%20pr%C3%B3xima%20vez.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-127549%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20lineas%20simples%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-127549%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EWow%2C%20est%C3%A1%20bien%2C%20eso%20es%20fant%C3%A1stico!%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELa%20clave%20era%20hacer%20las%20insignias%20una%20superposici%C3%B3n%2C%20que%20nunca%20entr%C3%B3%20en%20mi%20mente.%20%26nbsp%3BPens%C3%A9%20que%20tendr%C3%ADa%20que%20poner%20l%C3%ADneas%20intermedias%20entre%20las%20secciones%20con%20%22.%22%20En%20todas%20las%20columnas%20para%20hacer%20que%20las%20l%C3%ADneas%20se%20rompan.%20%26nbsp%3B%C2%BFQu%C3%A9%20se%20supone%20que%20es%20superposici%C3%B3n%20de%20todos%20modos%3F%20(Acabo%20de%20leer%20el%20manual%2C%20pero%20para%20m%C3%AD%20nunca%20tiene%20mucho%20sentido).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEl%20apilamiento%20tambi%C3%A9n%20fue%20importante.%20%26nbsp%3BFundamentalmente%2C%20parece%20que%20hay%20dos%20formas%20de%20almacenar%20datos%20en%20una%20tabla%3A%20(1)%20los%20encabezados%20de%20columna%20y%20fila%20son%20entradas%2C%20y%20las%20celdas%20son%20salidas%20(que%20son%20los%20datos%20con%20los%20que%20empezamos%20aqu%C3%AD)%2C%20y%20(2)%20las%20entradas%20est%C3%A1n%20en%20algunas%20columnas%20y%20salidas%20est%C3%A1n%20en%20otras%20columnas%20(que%20es%20lo%20que%20terminamos%20aqu%C3%AD).%20%26nbsp%3BJMP%20parece%20funcionar%20naturalmente%20con%20datos%20como%20%23%202%2C%20y%20puede%20convertir%20%23%201%20en%20%23%202%20usando%20%22stack%22.%20%26nbsp%3BPero%20el%20%23%202%20parece%20ser%20mucho%20menos%20eficiente%20en%20t%C3%A9rminos%20de%20uso%20de%20RAM.%20%26nbsp%3B%C2%BFEstoy%20pensando%20en%20eso%20derecho%3F%20%C2%BFEs%20eso%20algo%20de%20lo%20que%20deber%C3%ADa%20preocuparme%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%C2%A1%C2%A1Gracias!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-124263%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20lineas%20simples%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-124263%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHe%20logrado%20hacer%20que%20esto%20suceda.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPrimero%2C%20simplemente%20copi%C3%A9%20y%20pegu%C3%A9%20la%20tabla%20del%20art%C3%ADculo%20en%20una%20tabla%20JMP%20usando%20Edici%C3%B3n%26gt%3B%20Pegar%20con%20nombres%20de%20columna.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEn%20segundo%20lugar%2C%20tuve%20que%20cambiar%20un%20par%20de%20columnas%20para%20que%20fueran%20num%C3%A9ricas%2C%20continuas%20porque%20conten%C3%ADan%20algunos%20datos%20de%20caracteres.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELuego%20apil%C3%A9%20la%20tabla%20de%20datos%20y%20utilic%C3%A9%20Graphbuilder%20para%20crear%20el%20gr%C3%A1fico.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELo%20puse%20todo%20en%20un%20script%20(excepto%20el%20cambio%20de%20los%20atributos%20de%20la%20columna%2C%20aunque%20podr%C3%ADa%20haberlo%20hecho%20tambi%C3%A9n).%20Ver%20adjunto.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
BHarris
Level VI

Simple line plots

This seems like it should be pretty easy, but it's not, and it's something I often run into and wonder if there's an easier way.

 

Here's an example dataset from https://blog.scoutingmagazine.org/2019/02/11/2018-merit-badge-rankings-a-deep-dive-into-the-official...

 

ss.png

 

I would like to build a single plot with a line for each merit badge.  There will be a bunch on top of each other, but suppose I'm interested in the standouts, the lines at the top and bottom.

 

I went through the hassle of making it in Excel to show what I'm trying to do:

 

ss2.png

 

Is there a good way to do this with JMP?

1 ACCEPTED SOLUTION

Accepted Solutions
wjlevin
Level III

Re: Simple line plots

I've managed to make this happen.

 

First, I simply copied and pasted the table from the article into a JMP table using Edit > Paste with Column Names.

 

Second, I had to change a couple of columns to be Numeric, Continuous because they had some character data within it.

 

I then stacked the data table and used Graphbuilder to create the graph.

 

I put it all in a script (except the changing the column attributes - though I could have scripted that too). See attached.

 

 

View solution in original post

4 REPLIES 4
wjlevin
Level III

Re: Simple line plots

I've managed to make this happen.

 

First, I simply copied and pasted the table from the article into a JMP table using Edit > Paste with Column Names.

 

Second, I had to change a couple of columns to be Numeric, Continuous because they had some character data within it.

 

I then stacked the data table and used Graphbuilder to create the graph.

 

I put it all in a script (except the changing the column attributes - though I could have scripted that too). See attached.

 

 

BHarris
Level VI

Re: Simple line plots

Wow, okay -- that's fantastic!  

 

The key was making the badges an overlay, which never entered my mind.  I thought I'd have to put intermediate lines between the sections with "." in all the columns to make the lines break.  What is overlay supposed to be anyway?  (I'll just read the manual, but it's never made a lot of sense to me.)

 

The stacking was also important.  Fundamentally it seems there are two ways of storing data in a table:  (1) column and row headers are inputs, and cells are outputs (which is the data we started with here), and (2) inputs are in some columns and outputs are in other columns (which is what we ended up with here).  JMP seems to naturally work with data like #2, and you can convert #1 into #2 using "stack".  But #2 seems to be far less efficient in terms of RAM usage.  Am I thinking about that right?  Is that something I should be concerned with?

 

Thank you!!

Re: Simple line plots

I'm glad that Wayne's solution worked for you. Graph Builder is very powerful, but it takes some study to master it. This time is well worth it.

 

See Help > Books > Essential Graphing. There a general principals and specific examples to guide you next time.

BHarris
Level VI

Re: Simple line plots

I've been through it, but some parts of it aren't terribly clear -- for example, "Overlay" says that it "subgroups and colors", but "Color" seems to do the same thing (except for subgrouping??).  Even after reading that section I would not have known to do what Wayne did, but thanks to him I understand it better.