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-639829%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E7%AE%B1%E3%81%B2%E3%81%92%E5%9B%B3%E3%81%AE%E4%B8%8B%E3%81%AB%E7%B5%B1%E8%A8%88%E3%81%AE%E6%A6%82%E8%A6%81%E3%81%A8%E8%87%AA%E5%8B%95%E9%85%8D%E7%BD%AE%E3%82%92%E5%90%AB%E3%82%80%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-639829%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%82%E6%AC%A1%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E7%94%9F%E6%88%90%E3%81%95%E3%82%8C%E3%81%9F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%82%B0%E3%83%A9%E3%83%95%20%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%82%92%E4%BD%9C%E6%88%90%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EGraph%20Builder(%0A%20Transform%20Column(%20%22Unit%20Number%22%2C%20Nominal%2C%20Formula(%20Char(%20%3A%22Unit%20S%2FN%22n%20)%20)%20)%2C%0A%20Size(%20570%2C%20817%20)%2C%0A%20Show%20Legend(%200%20)%2C%0A%20Variables(%20X(%20%3AUnit%20Number%20)%2C%20Y(%20%3ABounding_Circle_Diameter%20um%20)%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%3AAperture%20Name%20)%2C%0A%20%20%20Where(%20%3AAperture%20Name%20%3D%3D%20%22F_4.8%22%20)%2C%0A%20%20%20Display(%20%3AAperture%20Name%2C%20N%20Items(%203%20)%2C%20%22List%20Display%22%20)%0A%20%20)%0A%20)%2C%0A%20SendToReport(%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22Bounding_Circle_Diameter%20um%22%2C%0A%20%20%20ScaleBox%2C%0A%20%20%20%7BMin(%201500%20)%2C%20Max(%205000%20)%2C%20Inc(%20500%20)%2C%20Minor%20Ticks(%201%20)%7D%0A%20%20)%2C%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22graph%20title%22%2C%0A%20%20%20TextEditBox%2C%0A%20%20%20%7BSet%20Text(%20%22Bounding_Circle_Diameter%20um%20(F%2F4.8)%22%20)%2C%20Set%20Font%20Size(%2020%20)%7D%0A%20%20)%2C%0A%20%20Dispatch(%20%7B%7D%2C%20%22X%20title%22%2C%20TextEditBox%2C%20%7BSet%20Font%20Size(%2018%20)%7D%20)%2C%0A%20%20Dispatch(%20%7B%7D%2C%20%22Y%20title%22%2C%20TextEditBox%2C%20%7BSet%20Font%20Size(%2018%20)%7D%20)%2C%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22Graph%20Builder%22%2C%0A%20%20%20FrameBox%2C%0A%20%20%20%7BReference%20Line%20Order(%206%20)%2C%0A%20%20%20Add%20Graphics%20Script(%0A%20%20%20%202%2C%0A%20%20%20%20Description(%20%22%22%20)%2C%0A%20%20%20%20Text(%20Center%20Justified%2C%20%7B0%2C%202150%7D%2C%20%22Range%3A%2044.4638%22%20)%3B%0A%20%20%20%20Text(%20Center%20Justified%2C%20%7B0%2C%202050%7D%2C%20%22Mean%3A%202288.48%22%20)%3B%0A%20%20%20%20Text(%20Center%20Justified%2C%20%7B1%2C%202500%7D%2C%20%22Range%3A%20136.315%22%20)%3B%0A%20%20%20%20Text(%20Center%20Justified%2C%20%7B1%2C%202400%7D%2C%20%22Mean%3A%202681.81%22%20)%3B%0A%20%20%20%20Text(%20Center%20Justified%2C%20%7B2%2C%202100%7D%2C%20%22Range%3A%2097.6151%22%20)%3B%0A%20%20%20%20Text(%20Center%20Justified%2C%20%7B2%2C%202000%7D%2C%20%22Mean%3A%202278.41%22%20)%3B%0A%20%20%20)%7D%0A%20%20)%0A%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E3%81%9F%E3%81%A0%E3%81%97%E3%80%81%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%A8%E4%BD%8D%E7%BD%AE%E3%81%AF%E3%83%8F%E3%83%BC%E3%83%89%E3%82%B3%E3%83%BC%E3%83%89%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E6%89%8B%E5%8B%95%E3%81%A7%E4%BD%9C%E6%88%90%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%20%E8%A6%8B%E3%81%A6%E3%82%8F%E3%81%8B%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%80%81%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AF%E7%89%B9%E5%AE%9A%E3%81%AE%E5%88%97%E5%80%A4%E3%81%A7%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%83%AA%E3%83%B3%E3%82%B0%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%20%E3%81%93%E3%82%8C%E3%82%89%E3%81%AE%E3%83%8F%E3%83%BC%E3%83%89%E3%82%B3%E3%83%BC%E3%83%89%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%E3%82%92%E3%81%9D%E3%82%8C%E3%81%9E%E3%82%8C%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E7%B5%B1%E8%A8%88%E3%81%AB%E7%BD%AE%E3%81%8D%E6%8F%9B%E3%81%88%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AF%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%81%8B%3F%3CBR%20%2F%3E%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%AE%20Y%20%E4%BD%8D%E7%BD%AE%20-%26gt%3B%20%E3%83%87%E3%83%BC%E3%82%BF%20%E3%82%B5%E3%83%96%E3%82%BB%E3%83%83%E3%83%88%E3%81%AE%E6%9C%80%E5%B0%8F%E5%80%A4%E3%81%8B%E3%82%89%3CBR%20%2F%3E%E5%B9%B3%E5%9D%87%20-%26gt%3B%20%E3%83%87%E3%83%BC%E3%82%BF%E3%82%B5%E3%83%96%E3%82%BB%E3%83%83%E3%83%88%E3%81%8B%E3%82%89%E3%81%AE%E5%B9%B3%E5%9D%87%E5%80%A4%3CBR%20%2F%3E%E7%AF%84%E5%9B%B2%20-%26gt%3B%20%E3%83%87%E3%83%BC%E3%82%BF%E3%82%B5%E3%83%96%E3%82%BB%E3%83%83%E3%83%88%E3%81%AE%E6%9C%80%E5%A4%A7%20-%20%E6%9C%80%E5%B0%8F%3CBR%20%2F%3E%3CBR%20%2F%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-639829%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8B%95%E5%8C%96%E3%81%A8%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E4%BD%9C%E6%88%90%3C%2FLINGO-LABEL%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%3CLINGO-LABEL%3E%E3%83%9E%E3%83%83%E3%82%AFOS%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-639880%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%E7%AE%B1%E3%81%B2%E3%81%92%E5%9B%B3%E3%81%AE%E4%B8%8B%E3%81%AB%E7%B5%B1%E8%A8%88%E3%81%AE%E6%A6%82%E8%A6%81%E3%81%A8%E8%87%AA%E5%8B%95%E9%85%8D%E7%BD%AE%E3%82%92%E5%90%AB%E3%82%80%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-639880%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECaption%20%E8%A6%81%E7%B4%A0%E3%81%AF%E3%80%81%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%83%BC%E3%81%8C%E9%81%A9%E7%94%A8%E3%81%95%E3%82%8C%E3%82%8B%E3%81%A8%E7%B5%B1%E8%A8%88%E3%82%92%E8%87%AA%E5%8B%95%E7%9A%84%E3%81%AB%E6%9B%B4%E6%96%B0%E3%81%A7%E3%81%8D%E3%80%81%E7%B5%B1%E8%A8%88%E3%82%92%E9%85%8D%E7%BD%AE%E3%81%99%E3%82%8B%E5%A0%B4%E6%89%80%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AF%E3%81%84%E3%81%8F%E3%81%A4%E3%81%8B%E3%81%AE%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82JMP%2017%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E5%A0%B4%E5%90%88%E3%80%81%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%201%20%E3%81%A4%E3%81%AF%E3%80%81%E8%BB%B8%E3%81%AE%E4%B8%8B%E3%81%AE%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%81%AB%E7%B5%B1%E8%A8%88%E3%82%92%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%AB%E3%82%B9%E3%82%BF%E3%83%A0%E9%85%8D%E7%BD%AE%E3%82%92%E4%BF%9D%E6%8C%81%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%80%81%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E7%B5%8C%E7%94%B1%E3%81%A7%E7%B5%B1%E8%A8%88%E3%82%92%E8%A8%88%E7%AE%97%E3%81%97%E3%81%A6%E7%BD%AE%E3%81%8D%E6%8F%9B%E3%81%88%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%20JSL%20%E8%A1%8C%E7%8A%B6%E6%85%8B%E3%83%8F%E3%83%B3%E3%83%89%E3%83%A9%E3%83%BC%E3%82%92%E5%AE%9F%E8%A3%85%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8B%E5%8F%AF%E8%83%BD%E6%80%A7%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%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%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danschikore_0-1686143485767.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F53482i2F49AE2120B55ED4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22danschikore_0-1686143485767.png%22%20alt%3D%22danschikore_0-1686143485767.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%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%3Edt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0Adt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Size(%20528%2C%20464%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%20X(%20%3Aage%20)%2C%20Y(%20%3Aheight%20)%20)%2C%0A%20Elements(%0A%20%20Box%20Plot(%20X%2C%20Y%2C%20Legend(%206%20)%20)%2C%0A%20%20Caption%20Box(%0A%20%20%20X%2C%0A%20%20%20Y%2C%0A%20%20%20Legend(%207%20)%2C%0A%20%20%20Summary%20Statistic(%20%22Mean%22%20)%2C%0A%20%20%20Summary%20Statistic%202(%20%22Range%22%20)%2C%0A%20%20%20Location(%20%22Axis%20Table%22%20)%0A%20%20)%0A%20)%2C%0A%20Local%20Data%20Filter(%20Add%20Filter(%20columns(%20%3Asex%20)%2C%20Where(%20%3Asex%20%3D%3D%20%22M%22%20)%20)%20)%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-639921%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%E7%AE%B1%E3%81%B2%E3%81%92%E5%9B%B3%E3%81%AE%E4%B8%8B%E3%81%AB%E7%B5%B1%E8%A8%88%E3%81%AE%E6%A6%82%E8%A6%81%E3%81%A8%E8%87%AA%E5%8B%95%E9%85%8D%E7%BD%AE%E3%82%92%E5%90%AB%E3%82%80%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-639921%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%82%B0%E3%83%A9%E3%83%95%E3%82%A3%E3%83%83%E3%82%AF%E5%87%BA%E5%8A%9B%E3%82%92%E3%82%B0%E3%83%A9%E3%83%95%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%80%81%E3%82%88%E3%82%8A%E8%89%AF%E3%81%84%E6%96%B9%E6%B3%95%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E4%BB%A5%E4%B8%8B%E3%81%AE%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E4%BE%8B%E3%82%92%E8%A6%8B%E3%81%A6%E3%80%81%E3%82%B0%E3%83%A9%E3%83%95%E4%B8%8A%E3%81%AE%E3%81%A9%E3%81%93%E3%81%AB%E4%BD%95%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B%E3%81%8B%E3%82%92%E5%8B%95%E7%9A%84%E3%81%AB%E6%B1%BA%E5%AE%9A%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_0-1686148237919.png%22%20style%3D%22width%3A%20638px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1686148237919.png%22%20style%3D%22width%3A%20638px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1686148237919.png%22%20style%3D%22width%3A%20638px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1686148237919.png%22%20style%3D%22width%3A%20638px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1686148237919.png%22%20style%3D%22width%3A%20638px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1686148237919.png%22%20style%3D%22width%3A%20638px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1686148237919.png%22%20style%3D%22width%3A%20638px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1686148237919.png%22%20style%3D%22width%3A%20638px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F53490iE8D7C2C505087363%2Fimage-dimensions%2F638x590%3Fv%3Dv2%22%20width%3D%22638%22%20height%3D%22590%22%20role%3D%22button%22%20title%3D%22txnelson_0-1686148237919.png%22%20alt%3D%22txnelson_0-1686148237919.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%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(%201%20)%3B%0AOpen(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0A%2F%2F%20Create%20the%20graph%0Agb%20%3D%20Graph%20Builder(%0A%20Size(%20528%2C%20456%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%20X(%20%3Aweight%20)%2C%20Y(%20%3Aheight%20)%20)%2C%0A%20Elements(%20Points(%20X%2C%20Y%2C%20Legend(%203%20)%20)%2C%20Smoother(%20X%2C%20Y%2C%20Legend(%204%20)%20)%20)%0A)%3B%0A%0A%2F%2F%20Access%20the%20report%20output%0Argb%20%3D%20gb%20%26lt%3B%26lt%3B%20report%3B%0A%0A%2F%2F%20Add%20a%20graphics%20script%20to%20the%20report%20output%0Argb%5Bframebox(%201%20)%5D%20%26lt%3B%26lt%3B%20add%20graphics%20script(%0A%0A%2F%2F%20Find%20the%20parametrics%20of%20the%20displayed%20graph%0A%20xMaxAxis%20%3D%20rgb%5BAxisBox(%201%20)%5D%20%26lt%3B%26lt%3B%20get%20max%3B%0A%20xMinAxis%20%3D%20rgb%5BAxisBox(%201%20)%5D%20%26lt%3B%26lt%3B%20get%20min%3B%0A%20yMaxAxis%20%3D%20rgb%5BAxisBox(%202%20)%5D%20%26lt%3B%26lt%3B%20get%20max%3B%0A%20yMinAxis%20%3D%20rgb%5BAxisBox(%202%20)%5D%20%26lt%3B%26lt%3B%20get%20min%3B%0A%20%0A%20%2F%2F%20Calculate%20the%20desired%20column%20stats%0A%20heightMean%20%3D%20Col%20Mean(%20%3Aheight%20)%3B%0A%20heightRange%20%3D%20Col%20Max(%20%3Aheight%20)%20-%20Col%20Min(%20%3Aheight%20)%3B%0A%20%0A%20%2F%2F%20Calculate%20the%20xy%20position%20on%20the%20graph%20to%20display%20the%20text%0A%20pos%20%3D%20As%20List(%0A%20%20Matrix(%20(xMinAxis%20%2B%20.1%20*%20(xMaxAxis%20-%20xMinAxis))%20%7C%2F%20(yMaxAxis%20-%20.1%20*%20(yMaxAxis%20-%20yMinaxis))%20)%0A%20)%3B%0A%0A%20%2F%2F%20Write%20out%20the%20text%0A%20Text(%20Center%20Justified%2C%20pos%2C%20%22Mean%3A%20%22%20%7C%7C%20Format(%20heightMean%2C%20%22fixed%20dec%22%2C%207%2C%20%2C%202%20)%20)%3B%0A%20%0A%20%2F%2F%20Change%20the%20display%20position%20for%20the%20next%20line%20to%20be%20displayed%0A%20pos%5B2%5D%20%3D%20pos%5B2%5D%20-%20.05%20*%20(yMaxAxis%20-%20yMinaxis)%3B%0A%20%0A%20%2F%2F%20Write%20out%20the%20new%20line%0A%20Text(%20Center%20Justified%2C%20pos%2C%20%22Range%3A%20%22%20%7C%7C%20Format(%20heightMean%2C%20%22fixed%20dec%22%2C%207%2C%20%2C%202%20)%20)%3B%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-640445%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%E7%AE%B1%E3%81%B2%E3%81%92%E5%9B%B3%E3%81%AE%E4%B8%8B%E3%81%AB%E7%B5%B1%E8%A8%88%E3%81%AE%E6%A6%82%E8%A6%81%E3%81%A8%E8%87%AA%E5%8B%95%E9%85%8D%E7%BD%AE%E3%82%92%E5%90%AB%E3%82%80%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-640445%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%82%B0%E3%83%A9%E3%83%95%E3%82%A3%E3%83%83%E3%82%AF%E3%82%B9%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AE%E4%BD%BF%E7%94%A8%E3%81%AB%E9%96%A2%E3%81%99%E3%82%8B%E3%81%84%E3%81%8F%E3%81%A4%E3%81%8B%E3%81%AE%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%E3%82%B0%E3%83%A9%E3%83%95%E3%82%A3%E3%83%83%E3%82%AF%E3%82%B9%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AE%E8%A8%88%E7%AE%97%E3%81%AF%E3%80%81%E7%94%BB%E9%9D%A2%E3%81%8C%E6%9B%B4%E6%96%B0%E3%81%95%E3%82%8C%E3%82%8B%E3%81%9F%E3%81%B3%E3%81%AB%E8%A1%8C%E3%82%8F%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E8%A8%88%E7%AE%97%E3%81%A7%E3%81%AF%E8%A1%8C%E7%8A%B6%E6%85%8B%E3%81%8C%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%81%AA%E3%81%84%E3%81%9F%E3%82%81%E3%80%81%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%83%BC%E3%81%AB%E9%96%A2%E3%81%99%E3%82%8B%E5%95%8F%E9%A1%8C%E3%81%8C%E5%BC%95%E3%81%8D%E7%B6%9A%E3%81%8D%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E3%81%8B%E3%82%89%E4%BF%9D%E5%AD%98%E3%81%97%E3%81%A6%E5%BE%8C%E3%81%A7%E5%86%8D%E5%AE%9F%E8%A1%8C%E3%81%97%E3%81%A6%E3%82%82%E3%80%81%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AF%E8%87%AA%E5%B7%B1%E5%AE%8C%E7%B5%90%E5%9E%8B%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%84%E3%81%9F%E3%82%81%E6%A9%9F%E8%83%BD%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%E3%81%93%E3%82%8C%E3%81%AF%E3%80%81%E3%83%AF%E3%83%BC%E3%82%AF%E3%83%95%E3%83%AD%E3%83%BC%E3%80%81%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%80%81%E3%83%80%E3%83%83%E3%82%B7%E3%83%A5%E3%83%9C%E3%83%BC%E3%83%89%E3%80%81%E3%81%BE%E3%81%9F%E3%81%AF%20JRP%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%B8%E3%81%AE%E4%BF%9D%E5%AD%98%E3%81%AB%E3%82%82%E5%BD%B1%E9%9F%BF%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Adding Text with statistic summary and automatic positioning under box plot

Hi, I have created graph builder with generated script as follows:

Graph Builder(
	Transform Column( "Unit Number", Nominal, Formula( Char( :"Unit S/N"n ) ) ),
	Size( 570, 817 ),
	Show Legend( 0 ),
	Variables( X( :Unit Number ), Y( :Bounding_Circle_Diameter um ) ),
	Elements( Box Plot( X, Y, Legend( 6 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Param Name ),
			Where( :Param Name == "Fuiyoh" ),
			Display( :Param Name, N Items( 3 ), "List Display" )
		)
	),
	SendToReport(
		Dispatch(
			{},
			"Bounding_Circle_Diameter um",
			ScaleBox,
			{Min( 1500 ), Max( 5000 ), Inc( 500 ), Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Text( "Bounding_Circle_Diameter um (Fuiyoh)" ), Set Font Size( 20 )}
		),
		Dispatch( {}, "X title", TextEditBox, {Set Font Size( 18 )} ),
		Dispatch( {}, "Y title", TextEditBox, {Set Font Size( 18 )} ),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Reference Line Order( 6 ),
			Add Graphics Script(
				2,
				Description( "" ),
				Text( Center Justified, {0, 2150}, "Range: 44.4638" );
				Text( Center Justified, {0, 2050}, "Mean: 2288.48" );
				Text( Center Justified, {1, 2500}, "Range: 136.315" );
				Text( Center Justified, {1, 2400}, "Mean: 2681.81" );
				Text( Center Justified, {2, 2100}, "Range: 97.6151" );
				Text( Center Justified, {2, 2000}, "Mean: 2278.41" );
			)}
		)
	)
);

But the text and positions were created manually with hard coded values. As it can be seen the data is filtered with a certain column values. Is there any way I could replace those hard coded values with the statistics from the data respectively?
Text Y position -> from Min values of the data subset
Mean -> average value from data subset
range -> Max - Min from data subset

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Adding Text with statistic summary and automatic positioning under box plot

There is a better methodology to use to add graphics output to a graph.  Take a look at the example script below to see how to dynamically determine where and what to display on a graph.

txnelson_0-1686148237919.png

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );

// Create the graph
gb = Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);

// Access the report output
rgb = gb << report;

// Add a graphics script to the report output
rgb[framebox( 1 )] << add graphics script(

// Find the parametrics of the displayed graph
	xMaxAxis = rgb[AxisBox( 1 )] << get max;
	xMinAxis = rgb[AxisBox( 1 )] << get min;
	yMaxAxis = rgb[AxisBox( 2 )] << get max;
	yMinAxis = rgb[AxisBox( 2 )] << get min;
	
	// Calculate the desired column stats
	heightMean = Col Mean( :height );
	heightRange = Col Max( :height ) - Col Min( :height );
	
	// Calculate the xy position on the graph to display the text
	pos = As List(
		Matrix( (xMinAxis + .1 * (xMaxAxis - xMinAxis)) |/ (yMaxAxis - .1 * (yMaxAxis - yMinaxis)) )
	);

	// Write out the text
	Text( Center Justified, pos, "Mean: " || Format( heightMean, "fixed dec", 7, , 2 ) );
	
	// Change the display position for the next line to be displayed
	pos[2] = pos[2] - .05 * (yMaxAxis - yMinaxis);
	
	// Write out the new line
	Text( Center Justified, pos, "Range: " || Format( heightMean, "fixed dec", 7, , 2 ) );
);

 

Jim

View solution in original post

3 REPLIES 3

Re: Adding Text with statistic summary and automatic positioning under box plot

The Caption element can automatically update the stats as the filter is applied, and it has a few options for where to place the stats.  If you are using JMP 17 one of the options is to place the stats in a table below the axis.  Retaining the custom placement would likely require that you implement a JSL row-state handler to compute and replace the stats via script.

 

danschikore_0-1686143485767.png

 

 

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Graph Builder(
	Size( 528, 464 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ) ),
	Elements(
		Box Plot( X, Y, Legend( 6 ) ),
		Caption Box(
			X,
			Y,
			Legend( 7 ),
			Summary Statistic( "Mean" ),
			Summary Statistic 2( "Range" ),
			Location( "Axis Table" )
		)
	),
	Local Data Filter( Add Filter( columns( :sex ), Where( :sex == "M" ) ) )
);

 

 

txnelson
Super User

Re: Adding Text with statistic summary and automatic positioning under box plot

There is a better methodology to use to add graphics output to a graph.  Take a look at the example script below to see how to dynamically determine where and what to display on a graph.

txnelson_0-1686148237919.png

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );

// Create the graph
gb = Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);

// Access the report output
rgb = gb << report;

// Add a graphics script to the report output
rgb[framebox( 1 )] << add graphics script(

// Find the parametrics of the displayed graph
	xMaxAxis = rgb[AxisBox( 1 )] << get max;
	xMinAxis = rgb[AxisBox( 1 )] << get min;
	yMaxAxis = rgb[AxisBox( 2 )] << get max;
	yMinAxis = rgb[AxisBox( 2 )] << get min;
	
	// Calculate the desired column stats
	heightMean = Col Mean( :height );
	heightRange = Col Max( :height ) - Col Min( :height );
	
	// Calculate the xy position on the graph to display the text
	pos = As List(
		Matrix( (xMinAxis + .1 * (xMaxAxis - xMinAxis)) |/ (yMaxAxis - .1 * (yMaxAxis - yMinaxis)) )
	);

	// Write out the text
	Text( Center Justified, pos, "Mean: " || Format( heightMean, "fixed dec", 7, , 2 ) );
	
	// Change the display position for the next line to be displayed
	pos[2] = pos[2] - .05 * (yMaxAxis - yMinaxis);
	
	// Write out the new line
	Text( Center Justified, pos, "Range: " || Format( heightMean, "fixed dec", 7, , 2 ) );
);

 

Jim

Re: Adding Text with statistic summary and automatic positioning under box plot

A few points about using a graphics script:

  • The graphics script computation will occur at every refresh of the screen
  • The computation is not using the row-states, so it will still have issues with filters
  • If you save the script from the platform and rerun it later, it will not work because it is not self-contained.  This also affects saving in a Workflow, Project, Dashboard, or to a JRP file.

Recommended Articles