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-824558%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%81%A7%E7%95%B0%E3%81%AA%E3%82%8B%E8%A6%81%E7%B4%84%E7%B5%B1%E8%A8%88%E3%82%92%E6%8C%81%E3%81%A4%E9%87%8D%E8%A4%87%E3%83%92%E3%83%BC%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824558%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EBig%20Class%20%E3%81%A8%E6%AC%A1%E3%81%AE%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%8C%E3%81%82%E3%82%8B%E3%81%A8%E3%81%97%E3%81%BE%E3%81%99%3A%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EGraph%20Builder(%0A%09Size(%20574%2C%20613%20)%2C%0A%09Graph%20Spacing(%2020%20)%2C%0A%09Variables(%0A%09%09X(%20%3Asex%20)%2C%0A%09%09X(%20%3Asex%20)%2C%0A%09%09Y(%20%3Aage%20)%2C%0A%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20%22Min%22%20)%20)%0A%09)%2C%0A%09Elements(%20Position(%201%2C%201%20)%2C%20Heatmap(%20X%2C%20Y%2C%20Legend(%204%20)%20)%20)%2C%0A%09Elements(%20Position(%202%2C%201%20)%2C%20Heatmap(%20X%2C%20Y%2C%20Legend(%205%20)%20)%20)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E5%B7%A6%E3%81%AE%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%A7%E3%80%8C%E5%B9%B3%E5%9D%87%E3%80%8D%E8%A6%81%E7%B4%84%E7%B5%B1%E8%A8%88%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%80%81%E5%8F%B3%E3%81%AE%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%A7%E3%80%8C%E6%9C%80%E5%B0%8F%E3%80%8D%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E5%88%A5%E3%81%AE%20Color()%20%E4%BB%95%E6%A7%98%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81JMP%2017%20%E3%81%A7%E3%81%AF%E6%A9%9F%E8%83%BD%E3%81%97%E3%81%AA%E3%81%84%E3%82%88%E3%81%86%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-824558%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E6%8E%A2%E7%B4%A2%E3%81%A8%E8%A6%96%E8%A6%9A%E5%8C%96%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-824572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%81%A7%E7%95%B0%E3%81%AA%E3%82%8B%E8%A6%81%E7%B4%84%E7%B5%B1%E8%A8%88%E3%82%92%E6%8C%81%E3%81%A4%E9%87%8D%E8%A4%87%E3%83%92%E3%83%BC%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%A7%81%E3%81%8C%E3%81%97%E3%81%9F%E3%81%AE%E3%81%AF%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%3D%26gt%3B%E6%A6%82%E8%A6%81%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%80%81%E6%80%A7%E5%88%A5%E3%81%A8%E5%B9%B4%E9%BD%A2%E5%88%A5%E3%81%AB%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%E5%8C%96%E3%81%95%E3%82%8C%E3%81%9F%E5%B9%B3%E5%9D%87%E3%81%A8%E6%9C%80%E5%B0%8F%E3%81%AE%E7%B5%B1%E8%A8%88%E3%82%92%E5%90%AB%E3%82%80%E6%96%B0%E3%81%97%E3%81%84%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%82%92%E4%BD%9C%E6%88%90%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%3D%26gt%3B%E3%82%B9%E3%82%BF%E3%83%83%E3%82%AF%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%80%81%E5%B9%B3%E5%9D%87%E5%88%97%E3%81%A8%E6%9C%80%E5%B0%8F%E5%88%97%E3%82%92%E7%A9%8D%E3%81%BF%E9%87%8D%E3%81%AD%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_0-1734645323632.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1734645323632.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1734645323632.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1734645323632.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1734645323632.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1734645323632.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F71434iC68EBF8060878555%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22txnelson_0-1734645323632.png%22%20alt%3D%22txnelson_0-1734645323632.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0A%0Adt%20%3D%0A%2F%2F%20Open%20Data%20Table%3A%20Big%20Class.jmp%0A%2F%2F%20%E2%86%92%20Data%20Table(%20%22Big%20Class%22%20)%0AOpen(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0A%2F%2F%20Data%20table%20summary%0A%2F%2F%20%E2%86%92%20Data%20Table(%20%22Summary%20of%20Big%20Class%20grouped%20by%20age%2C%20sex%22%20)%0AData%20Table(%20%22Big%20Class%22%20)%20%26lt%3B%26lt%3B%20Summary(%0A%09Group(%20%3Aage%2C%20%3Asex%20)%2C%0A%09Mean(%20%3Aheight%20)%2C%0A%09Min(%20%3Aheight%20)%2C%0A%09Freq(%20%22None%22%20)%2C%0A%09Weight(%20%22None%22%20)%2C%0A%09statistics%20column%20name%20format(%20%22stat%22%20)%2C%0A%09output%20table%20name(%20%22Summary%20of%20Big%20Class%20grouped%20by%20age%2C%20sex%22%20)%0A)%3B%0A%0A%2F%2F%20Stack%20data%20table%0A%2F%2F%20%E2%86%92%20Data%20Table(%20%22Stack%20of%20Summary%20of%20Big%20Class%20grouped%20by%20age%2C%20sex%20(Mean%2C%20Min)%22%20)%0AData%20Table(%20%22Summary%20of%20Big%20Class%20grouped%20by%20age%2C%20sex%22%20)%20%26lt%3B%26lt%3B%0AStack(%0A%09columns(%20%3AMean%2C%20%3AMin%20)%2C%0A%09Output%20Table(%20%22Stack%20of%20Summary%20of%20Big%20Class%20grouped%20by%20age%2C%20sex%20(Mean%2C%20Min)%22%20)%0A)%3B%0A%0AGraph%20Builder(%0A%09X%20Group%20Edge(%20%22Bottom%22%20)%2C%0A%09Variables(%20X(%20%3Asex%20)%2C%20Y(%20%3Aage%20)%2C%20Group%20X(%20%3ALabel%20)%2C%20Color(%20%3AData%20)%20)%2C%0A%09Elements(%20Heatmap(%20X%2C%20Y%2C%20Legend(%204%20)%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-824573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%81%A7%E7%95%B0%E3%81%AA%E3%82%8B%E8%A6%81%E7%B4%84%E7%B5%B1%E8%A8%88%E3%82%92%E6%8C%81%E3%81%A4%E9%87%8D%E8%A4%87%E3%83%92%E3%83%BC%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%82%82%E3%81%86%201%20%E3%81%A4%E3%81%AE%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AF%E3%80%812%20%E3%81%A4%E3%81%AE%E3%82%B0%E3%83%A9%E3%83%95%20%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%20%E3%83%AC%E3%83%9D%E3%83%BC%E3%83%88%E3%82%92%E4%BD%9C%E6%88%90%E3%81%97%E3%80%81%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%20%E3%83%AC%E3%83%9D%E3%83%BC%E3%83%88%E3%81%AE%E6%96%B0%E3%81%97%E3%81%84%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%AB%E4%B8%A6%E3%81%B9%E3%81%A6%E9%85%8D%E7%BD%AE%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%E3%80%82%E3%82%B0%E3%83%A9%E3%83%95%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%97%E3%81%A6%E3%80%811%20%E3%81%A4%E3%81%8C%E6%9C%80%E5%B0%8F%E3%81%A8%E6%9C%80%E5%A4%A7%E3%81%A7%E8%89%B2%E5%88%86%E3%81%91%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%99%E3%82%8B%E3%81%A8%E3%81%84%E3%81%84%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%80%82%E7%B0%A1%E5%8D%98%E3%81%AA%E4%BE%8B%E3%82%92%E6%AC%A1%E3%81%AB%E7%A4%BA%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0Ahm1%20%3D%20expr(%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(%20235%2C%20613%20)%2C%0A%09Show%20Control%20Panel(%200%20)%2C%0A%09Variables(%0A%09%09X(%20%3Asex%20)%2C%0A%09%09Y(%20%3Aage%20)%2C%0A%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20%22Min%22%20)%20)%0A%09)%2C%0A%09Elements(%20Heatmap(%20X%2C%20Y%2C%20Legend(%201%20)%20)%20)%2C%0A))%3B%0A%0Ahm2%20%3D%20expr(%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(%20235%2C%20613%20)%2C%0A%09Show%20Control%20Panel(%200%20)%2C%09%0A%09Variables(%0A%09%09X(%20%3Asex%20)%2C%0A%09%09Y(%20%3Aage%20)%2C%0A%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20%22Max%22%20)%20)%0A%09)%2C%0A%09Elements(%20Heatmap(%20X%2C%20Y%2C%20Legend(%201%20)%20)%20)%2C%0A))%3B%0A%0Anew%20window(%20%22Two%20Heat%20Maps%22%2C%20%0A%09h%20list%20box(%20hm1%2C%20hm2%20)%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-824673%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%81%A7%E7%95%B0%E3%81%AA%E3%82%8B%E8%A6%81%E7%B4%84%E7%B5%B1%E8%A8%88%E3%82%92%E6%8C%81%E3%81%A4%E9%87%8D%E8%A4%87%E3%83%92%E3%83%BC%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824673%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%81%AE%E3%82%BD%E3%83%AA%E3%83%A5%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E9%81%8E%E5%89%B0%E3%81%AB%E8%A8%AD%E8%A8%88%E3%81%99%E3%82%8B%E3%83%AA%E3%82%B9%E3%82%AF%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E3%81%93%E3%82%8C%E3%82%92%E7%B5%B1%E8%A8%88%E3%81%AE%E3%83%AA%E3%82%B9%E3%83%88%E3%81%AB%E4%B8%80%E8%88%AC%E5%8C%96%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0AstatList%20%3D%20%7B%20%22Mean%22%2C%20%22Median%22%2C%20%22Mode%22%2C%20%22Min%22%2C%20%22Max%22%2C%20%22Range%22%2C%20%22Median%22%2C%20%22Std%20Dev%22%20%7D%3B%0A%0Ahm_fxn%20%3D%20function(%20%7B%20STAT%20%7D%2C%0A%09dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09%09Size(%20200%2C%20300%20)%2C%09%09%09%09%2F%2F%20Adjust%20size%20based%20on%20number%20of%20heatmaps%0A%09%09Show%20Control%20Panel(%200%20)%2C%0A%09%09Variables(%0A%09%09%09X(%20%3Asex%20)%2C%0A%09%09%09Y(%20%3Aage%20)%2C%0A%09%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20STAT%20)%20)%0A%09%09)%2C%0A%09%09Elements(%20Heatmap(%20X%2C%20Y%2C%20Legend(%201%20)%20)%20)%2C%0A%09%09SendToReport(%0A%09%09%09Dispatch(%20%7B%7D%2C%20%22Graph%20Builder%22%2C%20OutlineBox%2C%0A%09%09%09%7BSet%20Title(%20%22Color%20by%20%22%20%7C%7C%20STAT%20)%2C%20Image%20Export%20Display(%20Normal%20)%7D%0A%09%09%09)%0A%09%09)%0A%09)%0A)%3B%0A%0Anew%20window(%20%22Heat%20Maps%22%2C%0A%09outline%20box(%20dt%20%26lt%3B%26lt%3B%20get%20name%20%7C%7C%20%22%20Heat%20Maps%22%2C%0A%09%09lub%20%3D%20line%20up%20box(%20n%20col(%204%20)%20)%09%2F%2F%20Adjust%20n%20col()%20for%20number%20of%20heatmaps%20per%20row%0A%09)%0A)%3B%0A%0Afor%20each(%20%7B%20s%20%7D%2C%20statList%2C%0A%09lub%20%26lt%3B%26lt%3B%20append(%20hm_fxn(%20s%20)%20)%0A)%0A%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22scott_allen_0-1734700199705.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22scott_allen_0-1734700199705.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22scott_allen_0-1734700199705.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22scott_allen_0-1734700199705.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F71476iB6059090D2758807%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22scott_allen_0-1734700199705.png%22%20alt%3D%22scott_allen_0-1734700199705.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-824701%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%81%A7%E7%95%B0%E3%81%AA%E3%82%8B%E8%A6%81%E7%B4%84%E7%B5%B1%E8%A8%88%E3%82%92%E6%8C%81%E3%81%A4%E9%87%8D%E8%A4%87%E3%83%92%E3%83%BC%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824701%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F12313%22%20target%3D%22_blank%22%3E%40BHarris%20%E3%81%AF%3C%2FA%3E%E6%AC%A1%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E6%9B%B8%E3%81%84%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%3A%3CP%3E%E5%88%A5%E3%81%AE%20Color()%20%E4%BB%95%E6%A7%98%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81JMP%2017%20%E3%81%A7%E3%81%AF%E6%A9%9F%E8%83%BD%E3%81%97%E3%81%AA%E3%81%84%E3%82%88%E3%81%86%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E-%26gt%3B%20%E5%88%A5%E3%81%AE%E8%89%B2%E3%82%92%E8%BF%BD%E5%8A%A0%3CBR%20%2F%3EJMP%2017%20(.2)%20%E3%81%A7%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%BE%E3%81%99%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1734716046947.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1734716046947.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1734716046947.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F71480iC76426C936611E41%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1734716046947.png%22%20alt%3D%22hogi_0-1734716046947.png%22%20%2F%3E%3C%2Fspan%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%2FBig%20Class%20Families.jmp%22%20)%3B%0AGraph%20Builder(%0A%09Size(%20574%2C%20613%20)%2C%0A%09Summary%20Statistic(%20%22Median%22%20)%2C%0A%09Graph%20Spacing(%2020%20)%2C%0A%09Variables(%0A%09%09X(%20%3Asex%20)%2C%0A%09%09X(%20%3Asex%20)%2C%0A%09%09Y(%20%3Aage%20)%2C%0A%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20%22N%22%20)%20)%2C%0A%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20%22Max%22%20)%20)%0A%09)%2C%0A%09Elements(%20Position(%201%2C%201%20)%2C%20Heatmap(%20X%2C%20Y%2C%20Color(%201%20)%2C%20Legend(%204%20)%20)%20)%2C%0A%09Elements(%20Position(%202%2C%201%20)%2C%20Heatmap(%20X%2C%20Y%2C%20Color(%202%20)%2C%20Legend(%205%20)%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-824936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%81%A7%E7%95%B0%E3%81%AA%E3%82%8B%E8%A6%81%E7%B4%84%E7%B5%B1%E8%A8%88%E3%82%92%E6%8C%81%E3%81%A4%E9%87%8D%E8%A4%87%E3%83%92%E3%83%BC%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%B4%A0%E6%99%B4%E3%82%89%E3%81%97%E3%81%84%E3%80%81%E3%81%86%E3%81%BE%E3%81%8F%E3%81%84%E3%81%8D%E3%81%BE%E3%81%97%E3%81%9F!%20%E8%89%B2%E6%8C%87%E5%AE%9A%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%9F%E3%81%A8%E3%81%8D%E3%81%AB%E3%80%81%E8%BF%BD%E5%8A%A0%E3%81%AE%20X%20%E5%A4%89%E6%95%B0%E3%81%8C%E6%8A%9C%E3%81%91%E3%81%A6%E3%81%84%E3%81%9F%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%E3%80%82GB%20%E3%81%8C%20UI%20%E3%81%A7%E3%81%93%E3%82%8C%E3%82%92%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E3%81%97%E3%81%A6%E3%81%84%E3%82%8C%E3%81%B0%E3%82%88%E3%81%8B%E3%81%A3%E3%81%9F%E3%81%AE%E3%81%A7%E3%81%99%E3%81%8C%E3%80%81%E3%81%99%E3%81%A7%E3%81%AB%E5%A4%9A%E3%81%8F%E3%81%AE%E6%A9%9F%E8%83%BD%E3%81%8C%E5%82%99%E3%82%8F%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99...%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E7%A7%81%E3%81%8C%E6%8E%A2%E3%81%97%E3%81%A6%E3%81%84%E3%81%9F%E6%9C%80%E7%B5%82%E7%9A%84%E3%81%AA%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AF%E6%AC%A1%E3%81%AE%E3%81%A8%E3%81%8A%E3%82%8A%E3%81%A7%E3%81%99%E3%80%82%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%2FBig%20Class.jmp%22%20)%3B%0AGraph%20Builder(%0A%09Size(%20934%2C%20824%20)%2C%0A%09Show%20Title(%201%20)%2C%0A%09Graph%20Spacing(%2020%20)%2C%0A%09Variables(%0A%09%09X(%20%3Asex%20)%2C%0A%09%09X(%20%3Asex%20)%2C%0A%09%09X(%20%3Asex%20)%2C%0A%09%09Y(%20%3Aage%20)%2C%0A%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20%22Min%22%20)%20)%2C%0A%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20%22Mean%22%20)%20)%2C%0A%09%09Color(%20%3Aheight%2C%20Summary%20Statistic(%20%22Max%22%20)%20)%0A%09)%2C%0A%09Elements(%0A%09%09Position(%201%2C%201%20)%2C%0A%09%09Heatmap(%20X%2C%20Y%2C%20Color(%201%20)%2C%20Legend(%201%20)%2C%20Label(%20%22Label%20by%20Value%22%20)%20)%0A%09)%2C%0A%09Elements(%0A%09%09Position(%202%2C%201%20)%2C%0A%09%09Heatmap(%20X%2C%20Y%2C%20Color(%202%20)%2C%20Legend(%202%20)%2C%20Label(%20%22Label%20by%20Value%22%20)%20)%0A%09)%2C%0A%09Elements(%0A%09%09Position(%203%2C%201%20)%2C%0A%09%09Heatmap(%20X%2C%20Y%2C%20Color(%203%20)%2C%20Legend(%203%20)%2C%20Label(%20%22Label%20by%20Value%22%20)%20)%0A%09)%2C%0A%09SendToReport(%0A%09%09Dispatch(%0A%09%09%09%7B%7D%2C%0A%09%09%09%22graph%20title%22%2C%0A%09%09%09TextEditBox%2C%0A%09%09%09%7BSet%20Text(%20%22Age%20vs.%20Sex%2C%20Colored%20on%20Height%20--%20Min%2C%20Mean%2C%20Max%22%20)%7D%0A%09%09)%2C%0A%09%09Dispatch(%0A%09%09%09%7B%7D%2C%0A%09%09%09%22400%22%2C%0A%09%09%09LegendBox%2C%0A%09%09%09%7BLegend%20Position(%20%7B1%2C%20%5B0%5D%2C%202%2C%20%5B-1%5D%2C%203%2C%20%5B-1%5D%7D%20)%7D%0A%09%09)%0A%09)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
BHarris
Level VII

Create duplicate heat-maps with different summary statistics in Graph Builder

Given Big Class and this plot:

 

Graph Builder(
	Size( 574, 613 ),
	Graph Spacing( 20 ),
	Variables(
		X( :sex ),
		X( :sex ),
		Y( :age ),
		Color( :height, Summary Statistic( "Min" ) )
	),
	Elements( Position( 1, 1 ), Heatmap( X, Y, Legend( 4 ) ) ),
	Elements( Position( 2, 1 ), Heatmap( X, Y, Legend( 5 ) ) )
)

Is there a way to make the left plot use the "Mean" summary statistic and the right plot to use "Min"?

 

I tried adding another Color() specification but it doesn't seem to work in JMP 17.

2 ACCEPTED SOLUTIONS

Accepted Solutions
hogi
Level XIII

Re: Create duplicate heat-maps with different summary statistics in Graph Builder


@BHarris wrote:

I tried adding another Color() specification but it doesn't seem to work in JMP 17.


-> add another color
Works with JMP 17 (.2)

hogi_0-1734716046947.png

 

dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
Graph Builder(
	Size( 574, 613 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 20 ),
	Variables(
		X( :sex ),
		X( :sex ),
		Y( :age ),
		Color( :height, Summary Statistic( "N" ) ),
		Color( :height, Summary Statistic( "Max" ) )
	),
	Elements( Position( 1, 1 ), Heatmap( X, Y, Color( 1 ), Legend( 4 ) ) ),
	Elements( Position( 2, 1 ), Heatmap( X, Y, Color( 2 ), Legend( 5 ) ) )
);

 

 

View solution in original post

BHarris
Level VII

Re: Create duplicate heat-maps with different summary statistics in Graph Builder

Excellent, that worked!  I think I was missing the extra X variable when I added the color spec.  It would be nice if GB supported this with the UI, but it already does so much...

 

Here's the final script I was looking for:

 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
	Size( 934, 824 ),
	Show Title( 1 ),
	Graph Spacing( 20 ),
	Variables(
		X( :sex ),
		X( :sex ),
		X( :sex ),
		Y( :age ),
		Color( :height, Summary Statistic( "Min" ) ),
		Color( :height, Summary Statistic( "Mean" ) ),
		Color( :height, Summary Statistic( "Max" ) )
	),
	Elements(
		Position( 1, 1 ),
		Heatmap( X, Y, Color( 1 ), Legend( 1 ), Label( "Label by Value" ) )
	),
	Elements(
		Position( 2, 1 ),
		Heatmap( X, Y, Color( 2 ), Legend( 2 ), Label( "Label by Value" ) )
	),
	Elements(
		Position( 3, 1 ),
		Heatmap( X, Y, Color( 3 ), Legend( 3 ), Label( "Label by Value" ) )
	),
	SendToReport(
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Text( "Age vs. Sex, Colored on Height -- Min, Mean, Max" )}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {1, [0], 2, [-1], 3, [-1]} )}
		)
	)
)

View solution in original post

5 REPLIES 5
txnelson
Super User

Re: Create duplicate heat-maps with different summary statistics in Graph Builder

What I did was to 

  1. Use Tables=>Summary to create a new table with the mean and min statistics grouped by Sex and Age
  2. Use Tables=>Stack to stack the mean and min columns
  3. Run Graph Builder

txnelson_0-1734645323632.png

names default to here(1);

dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );

// Data table summary
// → Data Table( "Summary of Big Class grouped by age, sex" )
Data Table( "Big Class" ) << Summary(
	Group( :age, :sex ),
	Mean( :height ),
	Min( :height ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "stat" ),
	output table name( "Summary of Big Class grouped by age, sex" )
);

// Stack data table
// → Data Table( "Stack of Summary of Big Class grouped by age, sex (Mean, Min)" )
Data Table( "Summary of Big Class grouped by age, sex" ) <<
Stack(
	columns( :Mean, :Min ),
	Output Table( "Stack of Summary of Big Class grouped by age, sex (Mean, Min)" )
);

Graph Builder(
	X Group Edge( "Bottom" ),
	Variables( X( :sex ), Y( :age ), Group X( :Label ), Color( :Data ) ),
	Elements( Heatmap( X, Y, Legend( 4 ) ) )
);
Jim

Re: Create duplicate heat-maps with different summary statistics in Graph Builder

Another option is to create two graph builder reports and place them side by side in a custom report new window. You might want to re-title the graphs so it is clear that one is colored Min and Max. Here is a simple example:

names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

hm1 = expr( dt << Graph Builder(
	Size( 235, 613 ),
	Show Control Panel( 0 ),
	Variables(
		X( :sex ),
		Y( :age ),
		Color( :height, Summary Statistic( "Min" ) )
	),
	Elements( Heatmap( X, Y, Legend( 1 ) ) ),
));

hm2 = expr( dt << Graph Builder(
	Size( 235, 613 ),
	Show Control Panel( 0 ),	
	Variables(
		X( :sex ),
		Y( :age ),
		Color( :height, Summary Statistic( "Max" ) )
	),
	Elements( Heatmap( X, Y, Legend( 1 ) ) ),
));

new window( "Two Heat Maps", 
	h list box( hm1, hm2 )
);
-Scott

Re: Create duplicate heat-maps with different summary statistics in Graph Builder

At the risk of over-engineering this solution, you could generalize this for a list of stats.

 

names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

statList = { "Mean", "Median", "Mode", "Min", "Max", "Range", "Median", "Std Dev" };

hm_fxn = function( { STAT },
	dt << Graph Builder(
		Size( 200, 300 ),				// Adjust size based on number of heatmaps
		Show Control Panel( 0 ),
		Variables(
			X( :sex ),
			Y( :age ),
			Color( :height, Summary Statistic( STAT ) )
		),
		Elements( Heatmap( X, Y, Legend( 1 ) ) ),
		SendToReport(
			Dispatch( {}, "Graph Builder", OutlineBox,
			{Set Title( "Color by " || STAT ), Image Export Display( Normal )}
			)
		)
	)
);

new window( "Heat Maps",
	outline box( dt << get name || " Heat Maps",
		lub = line up box( n col( 4 ) )	// Adjust n col() for number of heatmaps per row
	)
);

for each( { s }, statList,
	lub << append( hm_fxn( s ) )
)

 

scott_allen_0-1734700199705.png

 

-Scott
hogi
Level XIII

Re: Create duplicate heat-maps with different summary statistics in Graph Builder


@BHarris wrote:

I tried adding another Color() specification but it doesn't seem to work in JMP 17.


-> add another color
Works with JMP 17 (.2)

hogi_0-1734716046947.png

 

dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
Graph Builder(
	Size( 574, 613 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 20 ),
	Variables(
		X( :sex ),
		X( :sex ),
		Y( :age ),
		Color( :height, Summary Statistic( "N" ) ),
		Color( :height, Summary Statistic( "Max" ) )
	),
	Elements( Position( 1, 1 ), Heatmap( X, Y, Color( 1 ), Legend( 4 ) ) ),
	Elements( Position( 2, 1 ), Heatmap( X, Y, Color( 2 ), Legend( 5 ) ) )
);

 

 

BHarris
Level VII

Re: Create duplicate heat-maps with different summary statistics in Graph Builder

Excellent, that worked!  I think I was missing the extra X variable when I added the color spec.  It would be nice if GB supported this with the UI, but it already does so much...

 

Here's the final script I was looking for:

 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
	Size( 934, 824 ),
	Show Title( 1 ),
	Graph Spacing( 20 ),
	Variables(
		X( :sex ),
		X( :sex ),
		X( :sex ),
		Y( :age ),
		Color( :height, Summary Statistic( "Min" ) ),
		Color( :height, Summary Statistic( "Mean" ) ),
		Color( :height, Summary Statistic( "Max" ) )
	),
	Elements(
		Position( 1, 1 ),
		Heatmap( X, Y, Color( 1 ), Legend( 1 ), Label( "Label by Value" ) )
	),
	Elements(
		Position( 2, 1 ),
		Heatmap( X, Y, Color( 2 ), Legend( 2 ), Label( "Label by Value" ) )
	),
	Elements(
		Position( 3, 1 ),
		Heatmap( X, Y, Color( 3 ), Legend( 3 ), Label( "Label by Value" ) )
	),
	SendToReport(
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Text( "Age vs. Sex, Colored on Height -- Min, Mean, Max" )}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {1, [0], 2, [-1], 3, [-1]} )}
		)
	)
)

Recommended Articles