cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-782918%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECreaci%C3%B3n%20de%20un%20gr%C3%A1fico%20de%20panel%20utilizando%20datos%20pivotados%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782918%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHola%20comunidad%20JMP%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EEstoy%20usando%20JMP%2017.0.0%20y%20entiendo%20que%20puedo%20usar%20el%20cuadro%20%22Ajustar%22%20en%20Graph%20Builder%20para%20crear%20un%20gr%C3%A1fico%20de%20panel%20para%20un%20conjunto%20de%20datos%20no%20pivoteado.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESin%20embargo%2C%20%C2%BFc%C3%B3mo%20creo%20un%20gr%C3%A1fico%20de%20panel%20para%20un%20conjunto%20de%20datos%20que%20ya%20se%20ha%20pivotado%3F%20Lo%20m%C3%A1s%20parecido%20que%20se%20me%20ocurre%20es%20arrastrar%20columnas%20individuales%20al%20eje%20y%20del%20generador%20de%20gr%C3%A1ficos%20para%20apilar%20los%20gr%C3%A1ficos%20uno%20por%20uno%2C%20pero%20no%20en%20formato%20de%20panel.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EMe%20encantar%C3%ADa%20conocer%20la%20opini%C3%B3n%20de%20todos%20sobre%20esto.%20%C2%A1Gracias!%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JZ_0-1724172598393.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JZ_0-1724172598393.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JZ_0-1724172598393.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JZ_0-1724172598393.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67333iC9847B0E6EC8826B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JZ_0-1724172598393.png%22%20alt%3D%22JZ_0-1724172598393.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-782918%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EExploraci%C3%B3n%20y%20visualizaci%C3%B3n%20de%20datos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782939%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Creaci%C3%B3n%20de%20un%20gr%C3%A1fico%20de%20panel%20utilizando%20datos%20pivotados%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782939%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECon%20JMP%20es%20posible%20que%20tengas%20que%20utilizar%20una%20tabla%20en%20ambos%20formatos%20(ancha%2Fdividida%20o%20alta%2Fapilada)%20para%20apilar%20tus%20datos%20y%20crear%20el%20gr%C3%A1fico%20(a%20menos%20que%20quieras%20agregarlos%20como%20columnas%20separadas%20al%20eje%20y%20como%20lo%20has%20hecho).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782975%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Creaci%C3%B3n%20de%20un%20gr%C3%A1fico%20de%20panel%20utilizando%20datos%20pivotados%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782975%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E-%20A%20menudo%2C%20Graph%20Builder%20puede%20realizar%20el%20pivoteo%2C%20sin%20necesidad%20de%20hacerlo%20manualmente.%3C%2FP%3E%3CP%3E-%20como%20sugiri%C3%B3%20Jarmo%2C%20%22apila%22%20los%20valores%20y%20usa%20%22Etiqueta%22%20para%20envolver%20los%20gr%C3%A1ficos.%3C%2FP%3E%3CP%3E-%20Si%20necesita%20diferentes%20escalas%20de%20ejes%20para%20los%20gr%C3%A1ficos%20individuales%2C%20%22Ajustar%22%20no%20funcionar%C3%A1.%3CBR%20%2F%3E%20-%26gt%3B%20Actualice%20a%20JMP18%20y%20use%20%22P%C3%A1gina%22%20en%20lugar%20de%20%22Ajustar%22%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1724183095637.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1724183095637.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67342i7772971A9DDA14BD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1724183095637.png%22%20alt%3D%22hogi_0-1724183095637.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FWater%20Treatment.jmp%22%20)%3B%0A%0Adtstacked%20%3D%20dt%20%20%26lt%3B%26lt%3B%20Stack(%0A%09columns(%0A%09%09%3A%22Q-E%22n%2C%20%3A%22ZN-E%22n%2C%20%3A%22PH-E%22n%2C%20%3A%22DBO-E%22n%2C%20%3A%22DQO-E%22n%2C%20%3A%22SS-E%22n%2C%20%3A%22SSV-E%22n%2C%0A%09%09%3A%22SED-E%22n%2C%20%3A%22COND-E%22n%0A%09)%2C%0A%09%22Non-stacked%20columns%22n(%20Keep(%20%3ADate%20)%20)%0A)%3B%0A%0Adtstacked%20%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Transform%20Column(%0A%09%09%22Month%5BDate%5D%22%2C%0A%09%09Format(%20%22Format%20Pattern%22%2C%20%22%3CMM%3E%3CYYYY%3E%22%2C%2015%20)%2C%0A%09%09Formula(%20Date%20Increment(%20%3ADate%2C%20%22Month%22%2C%200%20)%20)%0A%09)%2C%0A%09Link%20Page%20Axes(%20%22X%20Only%22%20)%2C%0A%09Replicate%20Linked%20Page%20Axes(%200%20)%2C%0A%09Variables(%0A%09%09X(%20%3A%22Month%5BDate%5D%22n%20)%2C%0A%09%09Y(%20%3AData%20)%2C%0A%09%09Page(%20%3ALabel%2C%20Levels%20per%20Row(%203%20)%2C%20Show%20Title(%200%20)%20)%0A%09)%2C%0A%09Elements(%0A%09%09Points(%20X%2C%20Y%2C%20Summary%20Statistic(%20%22Mean%22%20)%20)%2C%0A%09%09Smoother(%20X%2C%20Y%20)%0A%09)%0A)%3B%3C%2FYYYY%3E%3C%2FMM%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
JZ
JZ
Level I

Creating Panel Plot using pivoted data

Hi JMP Community,

 

I'm using JMP 17.0.0 and I understand that I can use the "Wrap" box in Graph Builder to create a panel plot for an unpivoted dataset. 

 

However, how do I create a panel plot for a dataset that has already been pivoted? The closest I can come up with is to drag individual columns to the y-axis of graph builder to stack the plots one by one, but not in a panel format. 

 

Would love to hear everyone's input on this. Thanks!

 

JZ_0-1724172598393.png

 

2 REPLIES 2
jthi
Super User

Re: Creating Panel Plot using pivoted data

With JMP you might have to utilize table in both formats (wide/split or tall/stack) so stack your data and create the plot (unless you want to add them as separate columns to y-axis like you have done).

-Jarmo
hogi
Level XIII

Re: Creating Panel Plot using pivoted data

- Often Graph Builder can do the pivoting, no need to do it manually.

- as Jarmo suggested, "stack" the values and use "Label" to wrap the plots.

- if you need different axis scales for the individual plots, "Wrap" will not work.
-> Upgrade to JMP18 and use "Page" instead of "Wrap"

hogi_0-1724183095637.png

 

dt = Open( "$SAMPLE_DATA/Water Treatment.jmp" );

dtstacked = dt  << Stack(
	columns(
		:"Q-E"n, :"ZN-E"n, :"PH-E"n, :"DBO-E"n, :"DQO-E"n, :"SS-E"n, :"SSV-E"n,
		:"SED-E"n, :"COND-E"n
	),
	"Non-stacked columns"n( Keep( :Date ) )
);

dtstacked  << Graph Builder(
	Transform Column(
		"Month[Date]",
		Format( "Format Pattern", "<MM></><YYYY>", 15 ),
		Formula( Date Increment( :Date, "Month", 0 ) )
	),
	Link Page Axes( "X Only" ),
	Replicate Linked Page Axes( 0 ),
	Variables(
		X( :"Month[Date]"n ),
		Y( :Data ),
		Page( :Label, Levels per Row( 3 ), Show Title( 0 ) )
	),
	Elements(
		Points( X, Y, Summary Statistic( "Mean" ) ),
		Smoother( X, Y )
	)
);

 

Recommended Articles