cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-798220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BB%A5%E4%B8%8B%E8%85%B3%E6%9C%AC%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E7%B9%AA%E8%A3%BD%E4%B8%80%E4%BA%9B%E5%9C%96%E8%A1%A8%EF%BC%9F%E5%A6%82%E4%BD%95%E7%82%BA%E6%AF%8F%E5%80%8B%E5%9C%96%E8%A1%A8%E8%A8%AD%E5%AE%9A%E6%B0%B4%E5%B9%B3%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%8C%E4%BE%8B%E5%A6%82%E9%87%8D%E9%87%8F%20%3D%2080%20%E5%85%AC%E6%96%A4%E4%B8%A6%E4%BD%BF%E7%94%A8%20JSL%20%E6%A8%99%E8%A8%98%E5%AE%83%EF%BC%8880%20%E5%85%AC%E6%96%A4%EF%BC%89%EF%BC%9F%3C%2FP%3E%3CP%3E%EF%BC%88%E5%8D%B3%E4%BD%BF%E7%B9%AA%E8%A3%BD%E7%9A%84%E5%9C%96%E8%A1%A8%E6%95%B8%E9%87%8F%E7%99%BC%E7%94%9F%E8%AE%8A%E5%8C%96%EF%BC%8C%E6%88%91%E4%B9%9F%E9%9C%80%E8%A6%81%E4%BF%9D%E7%95%99%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%89%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%20%0Adt%20%3D%20open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(528%2C%202954)%2C%0A%09Show%20Control%20Panel(0)%2C%0A%09Variables(X(%3Aheight)%2C%20Y(%3Aweight)%2C%20Page(%3Aage))%2C%0A%09Elements(Points(X%2C%20Y%2C%20Legend(15))%2C%20Smoother(X%2C%20Y%2C%20Legend(16)))%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-798220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8B%95%E5%8C%96%E5%92%8C%E8%85%B3%E6%9C%AC%E7%B7%A8%E5%AF%AB%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%A6%96%E7%AA%97%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798279%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798279%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%20%0Adt%20%3D%20open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(528%2C%202954)%2C%0A%09Show%20Control%20Panel(0)%2C%0A%09Variables(X(%3Aheight)%2C%20Y(%3Aweight)%2C%20Page(%3Aage))%2C%0A%09Elements(Points(X%2C%20Y%2C%20Legend(15))%2C%20Smoother(X%2C%20Y%2C%20Legend(16)))%0A)%3B%0A%0Aaxis%20%3D%20gb%20%26lt%3B%26lt%3B%20XPath(%20%22%2F%2FAxisBox%22%20)%3B%0ASummarize(%20page%20%3D%20By(%20%3Aage%20)%20)%3B%0Aaxis%5B2%3A%3A(2*NItems(%20page%20))%3A%3A2%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(%2080%2C%20%22Solid%22%2C%20%22Red%22%2C%20%22Reference%22%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798292%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798292%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A6%82%E6%9E%9C%E6%88%91%E5%9C%A8%E7%B9%AA%E5%9C%96%E5%BE%8C%E8%AA%BF%E7%94%A8%E5%B9%B4%E9%BD%A1%E4%B8%8A%E7%9A%84%E6%9C%AC%E6%A9%9F%E8%B3%87%E6%96%99%E9%81%8E%E6%BF%BE%E5%99%A8%EF%BC%8C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5358%22%20target%3D%22_blank%22%3E%40Mark_Bailey%3C%2FA%3E%E5%B0%87%E5%81%9C%E6%AD%A2%E7%82%BA%E6%88%91%E5%B7%A5%E4%BD%9C%EF%BC%88JMP%2016.2%EF%BC%89%EF%BC%8C%E5%A6%82%E4%B8%8B%E6%89%80%E7%A4%BA%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Neo_0-1726153593695.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68176iED5C69D0BDD3CDFF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Neo_0-1726153593695.png%22%20alt%3D%22Neo_0-1726153593695.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%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%9C%80%E7%B0%A1%E5%96%AE%E7%9A%84%E6%96%B9%E6%B3%95%E6%98%AF%E5%B0%87%E6%96%B0%E5%88%97%E6%96%B0%E5%A2%9E%E5%88%B0%E8%B3%87%E6%96%99%E8%A1%A8%E4%B8%AD%EF%BC%8C%E6%AF%8F%E8%A1%8C%E5%85%B7%E6%9C%89%E7%9B%B8%E5%90%8C%E7%9A%84%E5%80%BC%EF%BC%8C%E4%B8%A6%E5%B0%87%E5%85%B6%E6%96%B0%E5%A2%9E%E8%87%B3%E5%9C%96%E8%A1%A8%E3%80%82%E9%80%99%E5%B0%87%E8%88%87%E9%81%8E%E6%BF%BE%E5%99%A8%E4%B8%80%E8%B5%B7%E4%BD%BF%E7%94%A8%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798334%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798334%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F14366%22%20target%3D%22_blank%22%3E%40jthi%3C%2FA%3E%E4%BD%A0%E7%9A%84%E5%BB%BA%E8%AD%B0%E6%95%88%E6%9E%9C%E5%BE%88%E5%A5%BD%EF%BC%8C%E9%99%A4%E4%BA%86%E6%88%91%E5%B8%8C%E6%9C%9B%E7%B7%9A%E8%B7%AF%E6%A8%99%E7%B1%A4%E4%BD%8D%E6%96%BC%E5%8F%B3%E5%81%B4%E3%80%82%E6%9C%89%E6%B2%92%E6%9C%89%E8%BE%A6%E6%B3%95%E6%94%B9%E8%AE%8A%E7%B7%9A%E6%A8%99%E7%B1%A4%E7%9A%84%E4%BD%8D%E7%BD%AE%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798387%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798387%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E4%B8%8D%E8%A8%98%E5%BE%97%20JMP16%20%E4%B8%AD%E6%9C%89%E5%93%AA%E4%BA%9B%E9%81%B8%E9%A0%85%E5%8F%AF%E7%94%A8%EF%BC%8C%E5%9B%A0%E7%82%BA%E6%88%91%E7%8F%BE%E5%9C%A8%E4%B8%BB%E8%A6%81%E4%BD%BF%E7%94%A8%20JMP18%EF%BC%88%E6%B7%B7%E5%90%88%E4%BA%86%E4%B8%80%E4%BA%9B%20JMP17%EF%BC%89%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0Adt%20%26lt%3B%26lt%3B%20New%20Column(%22Ref%22%2C%20Numeric%2C%20Continuous%2C%20Set%20Each%20Value(80))%3B%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(528%2C%20984)%2C%0A%09Show%20Control%20Panel(0)%2C%0A%09Variables(X(%3Aheight)%2C%20Y(%3Aweight)%2C%20Y(%3ARef%2C%20Position(1))%2C%20Page(%3Aage))%2C%0A%09Elements(%0A%09%09Points(X%2C%20Y(1)%2C%20Legend(15))%2C%0A%09%09Smoother(X%2C%20Y(1)%2C%20Legend(16))%2C%0A%09%09Line(Y(2)%2C%20Legend(17))%0A%09)%2C%0A%09Local%20Data%20Filter(%0A%09%09Add%20Filter(%0A%09%09%09columns(%3Aage)%2C%0A%09%09%09Where(%3Aage%20%3D%3D%20%7B12%2C%2015%7D)%2C%0A%09%09%09Display(%3Aage%2C%20N%20Items(6))%0A%09%09)%0A%09)%2C%0A%09SendToReport(%0A%09%09Dispatch(%7B%7D%2C%20%22400%22%2C%20ScaleBox%2C%0A%09%09%09%7BLegend%20Model(%0A%09%09%09%0917%2C%0A%09%09%09%09Level%20Name(0%2C%20%22Ref%22%2C%20Item%20ID(%22Mean(Ref)%22%2C%201))%2C%0A%09%09%09%09Properties(%0A%09%09%09%09%090%2C%0A%09%09%09%09%09%7BLine%20Label%20Properties(%0A%09%09%09%09%09%09%7BName%20Label(1)%2C%20Name%20Label%20Position(%22Last%22)%7D%0A%09%09%09%09%09)%7D%2C%0A%09%09%09%09%09Item%20ID(%22Mean(Ref)%22%2C%201)%0A%09%09%09%09)%0A%09%09%09)%7D%0A%09%09)%0A%09)%0A)%3B%0A%0AWrite()%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1726163173773.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726163173773.png%22%20style%3D%22width%3A%20308px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726163173773.png%22%20style%3D%22width%3A%20308px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726163173773.png%22%20style%3D%22width%3A%20308px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726163173773.png%22%20style%3D%22width%3A%20308px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726163173773.png%22%20style%3D%22width%3A%20308px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726163173773.png%22%20style%3D%22width%3A%20308px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726163173773.png%22%20style%3D%22width%3A%20308px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68199iD9B8CBB7FFD4B401%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1726163173773.png%22%20alt%3D%22jthi_0-1726163173773.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%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798413%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798413%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%E7%84%A1%E9%9C%80%E6%9B%B4%E6%94%B9%E6%95%B8%E6%93%9A%E8%A1%A8%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E9%80%8F%E9%81%8E%E8%A4%87%E8%A3%BD%E8%BB%B8%E8%A8%AD%E7%BD%AE%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ELink%20Page%20Axes(%20%22Y%20Only%22%20)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E4%B9%9F%E8%A4%87%E8%A3%BD%E5%8F%83%E8%80%83%E7%B7%9A%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%E4%BE%8B%E5%A6%82%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%09Link%20Page%20Axes(%20%22Y%20Only%22%20)%2C%0A%09Variables(%20X(%20%3Aheight%20)%2C%20Y(%20%3Aweight%20)%2C%20Page(%20%3Asex%20)%2C%20Overlay(%20%3Asex%20)%20)%2C%0A%09Elements(%20Points(%20X%2C%20Y)%2C%20Smoother(%20X%2C%20Y)%20)%2C%0A%09SendToReport(%0A%09%09Dispatch(%20%7B%7D%2C%20%22weight%22%2C%20ScaleBox%2C%0A%09%09%09%7BAdd%20Ref%20Line(%20100%2C%20%22Solid%22%2C%20%22Black%22%2C%20%22%22%2C%201%20)%7D%0A%09%09)%0A%09)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%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%22hogi_0-1726169228867.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1726169228867.png%22%20style%3D%22width%3A%20359px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1726169228867.png%22%20style%3D%22width%3A%20359px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1726169228867.png%22%20style%3D%22width%3A%20359px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1726169228867.png%22%20style%3D%22width%3A%20359px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1726169228867.png%22%20style%3D%22width%3A%20359px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68203i22C1654EAA13438D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1726169228867.png%22%20alt%3D%22hogi_0-1726169228867.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%3CP%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E9%80%99%E4%B9%9F%E6%98%AF%E4%B8%80%E7%A8%AE%E9%81%B8%E6%93%87%EF%BC%8C%E4%BD%86%E6%82%A8%E7%A2%BA%E5%AF%A6%E5%A4%B1%E5%8E%BB%E4%BA%86%20Page%20%E7%9A%84%E5%A5%BD%E8%99%95%E4%B9%8B%E4%B8%80%EF%BC%9A%E9%87%9D%E5%B0%8D%E4%B8%8D%E5%90%8C%E7%9A%84%E3%80%8C%E9%A0%81%E9%9D%A2%E3%80%8D%E5%85%B7%E6%9C%89%E4%B8%8D%E5%90%8C%E7%9A%84%E8%BB%B8%E7%B8%AE%E6%94%BE%E3%80%82%E9%80%99%E5%8F%AF%E8%83%BD%E4%B8%8D%E6%98%AF%E5%95%8F%E9%A1%8C%EF%BC%8C%E7%94%9A%E8%87%B3%E5%8F%AF%E8%83%BD%E6%98%AF%E4%B8%80%E5%80%8B%E5%A5%BD%E8%99%95%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F14366%22%20target%3D%22_blank%22%3E%40jthi%3C%2FA%3E%E8%AC%9D%E8%AC%9D%E3%80%82%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EName%20Label%20Position(%22Last%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E4%BC%BC%E4%B9%8E%E5%9C%A8%20JMP%2016.2%20%E4%B8%AD%E4%B8%8D%E5%8F%AF%E7%94%A8%2F%E5%B7%A5%E4%BD%9C%E3%80%82%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F26800%22%20target%3D%22_blank%22%3E%40hogi%3C%2FA%3E%E6%88%91%E9%81%B8%E6%93%87%E2%80%9C%E9%A0%81%E9%9D%A2%E2%80%9D%E9%81%B8%E9%A0%85%E7%9A%84%E5%8E%9F%E5%9B%A0%E6%98%AF%E9%80%99%E6%A8%A3%E6%88%91%E5%8F%AF%E4%BB%A5%E7%8D%B2%E5%BE%97%E4%B8%8D%E5%90%8C%E7%9A%84%20y%20%E8%BB%B8%E7%B8%AE%E6%94%BE%E6%AF%94%E4%BE%8B%E3%80%82%E6%88%91%E7%A2%BA%E4%BF%A1%E9%82%84%E6%9C%89%E5%85%B6%E4%BB%96%E6%96%B9%E6%B3%95%E5%8F%AF%E4%BB%A5%E5%81%9A%E5%88%B0%E9%80%99%E4%B8%80%E9%BB%9E%EF%BC%8C%E4%BD%86%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E4%BC%BC%E4%B9%8E%E6%9C%80%E7%B0%A1%E5%96%AE%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798526%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798526%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%84%B6%E5%BE%8C%E6%82%A8%E5%8F%AF%E8%83%BD%E5%BF%85%E9%A0%88%E8%BF%94%E5%9B%9E%20Mark%20%E7%9A%84%E8%A7%A3%E6%B1%BA%E6%96%B9%E6%A1%88%E4%B8%A6%E4%BD%BF%E7%94%A8%E9%81%8E%E6%BF%BE%E5%99%A8%E6%9B%B4%E6%94%B9%E8%99%95%E7%90%86%E7%A8%8B%E5%BA%8F%E3%80%82%E5%86%8D%E6%AC%A1%E4%B8%8D%E7%9F%A5%E9%81%93%20JMP16%20%E4%BD%BF%E7%94%A8%E6%AD%A4%E9%81%B8%E9%A0%85%E6%9C%89%E4%BB%80%E9%BA%BC%E9%99%90%E5%88%B6%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(528%2C%20984)%2C%0A%09Show%20Control%20Panel(0)%2C%0A%09Variables(X(%3Aheight)%2C%20Y(%3Aweight)%2C%20Page(%3Aage))%2C%0A%09Elements(%0A%09%09Points(X%2C%20Y(1)%2C%20Legend(15))%2C%0A%09%09Smoother(X%2C%20Y(1)%2C%20Legend(16))%0A%09)%2C%0A%09Local%20Data%20Filter(%0A%09%09Add%20Filter(%0A%09%09%09columns(%3Aage)%2C%0A%09%09%09Where(%3Aage%20%3D%3D%20%7B12%2C%2015%7D)%2C%0A%09%09%09Display(%3Aage%2C%20N%20Items(6))%0A%09%09)%0A%09)%0A)%3B%0A%0Aadd_reflines%20%3D%20EvalExpr(%0A%09axis%20%3D%20Expr(gb)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FAxisBox%22)%3B%0A%09axis%5B2%3A%3AN%20Items(axis)%3A%3A2%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(80%2C%20%22Solid%22%2C%20%22Red%22%2C%20%22Reference%22%2C%201%2C%201%2C%20Label%20Settings(%7BOpposite%20Axis(1)%7D))%3B%0A)%3B%0A%0Af%20%3D%20Function(%7Ba%7D%2C%20add_reflines)%3B%0A%0Aldf%20%3D%20(Report(gb)%20%26lt%3B%26lt%3B%20top%20parent)%5BOutlineBox(%22Local%20Data%20Filter%22)%5D%20%26lt%3B%26lt%3B%20Get%20Scriptable%20Object%3B%0A%0Ars%20%3D%20ldf%20%26lt%3B%26lt%3B%20Make%20Filter%20Change%20Handler(f)%3B%0A%0Aadd_reflines%3B%0AWrite()%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E9%80%99%E4%B8%8D%E6%98%AF%E5%9F%B7%E8%A1%8C%E6%AD%A4%E6%93%8D%E4%BD%9C%E7%9A%84%E6%9C%80%E5%BC%B7%E5%A4%A7%E7%9A%84%E9%81%B8%E9%A0%85%EF%BC%8C%E4%BD%86%E5%AE%83%E6%98%AF%E7%9B%B8%E7%95%B6%E7%B0%A1%E5%96%AE%E7%9A%84%E9%81%B8%E9%A0%85%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798527%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%81%E9%9D%A2%E9%81%B8%E9%A0%85%E5%9C%A8%E6%AF%8F%E5%80%8B%E9%A0%81%E9%9D%A2%E4%B8%8A%E8%A8%AD%E5%AE%9A%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798527%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%9C%96%E5%BD%A2%E8%85%B3%E6%9C%AC%E5%8F%AF%E8%83%BD%E6%98%AF%E4%B8%80%E7%A8%AE%E9%81%B8%E6%93%87%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(528%2C%20984)%2C%0A%09Show%20Control%20Panel(0)%2C%0A%09Variables(X(%3Aheight)%2C%20Y(%3Aweight)%2C%20Page(%3Aage))%2C%0A%09Elements(%0A%09%09Points(X%2C%20Y(1)%2C%20Legend(15))%2C%0A%09%09Smoother(X%2C%20Y(1)%2C%20Legend(16))%0A%09)%0A)%3B%0A%0A(Report(gb)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FFrameBox%22))%20%26lt%3B%26lt%3B%20Add%20Graphics%20Script(%0A%09Pen%20Color(%22Red%22)%3B%0A%09Text%20Color(%22red%22)%3B%0A%09Text(Right%20Justified%2C%20%7BX%20Origin()%20%2B%20X%20Range()%2C%2080%7D%2C%20%22Reference%22)%3B%0A%09H%20Line(80)%3B%0A)%3B%0A%0A%0Agb%20%26lt%3B%26lt%3B%20Local%20Data%20Filter(%0A%09Add%20Filter(%0A%09%09columns(%3Aage)%2C%0A%09%09Display(%3Aage%2C%20N%20Items(6))%0A%09)%0A)%3B%0A%0AWrite()%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Neo
Neo
Level VI

How to set a Reference Line on each page with Page option in Graph Builder?

The following script plots some charts with the page option in graph builder? How to I set a horizontal reference line, for each chart, say at Weight = 80Kg and label it (80kg) using JSL?

(I need the reference line to remain even if there is a change in the number of charts plotted)

Names Default To Here(1); 
dt = open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
	Size(528, 2954),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight), Page(:age)),
	Elements(Points(X, Y, Legend(15)), Smoother(X, Y, Legend(16)))
);
When it's too good to be true, it's neither
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to set a Reference Line on each page with Page option in Graph Builder?

And graphic script might be an option

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


gb = dt << Graph Builder(
	Size(528, 984),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight), Page(:age)),
	Elements(
		Points(X, Y(1), Legend(15)),
		Smoother(X, Y(1), Legend(16))
	)
);

(Report(gb) << XPath("//FrameBox")) << Add Graphics Script(
	Pen Color("Red");
	Text Color("red");
	Text(Right Justified, {X Origin() + X Range(), 80}, "Reference");
	H Line(80);
);


gb << Local Data Filter(
	Add Filter(
		columns(:age),
		Display(:age, N Items(6))
	)
);

Write();
-Jarmo

View solution in original post

10 REPLIES 10

Re: How to set a Reference Line on each page with Page option in Graph Builder?

Names Default To Here(1); 
dt = open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
	Size(528, 2954),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight), Page(:age)),
	Elements(Points(X, Y, Legend(15)), Smoother(X, Y, Legend(16)))
);

axis = gb << XPath( "//AxisBox" );
Summarize( page = By( :age ) );
axis[2::(2*NItems( page ))::2] << Add Ref Line( 80, "Solid", "Red", "Reference" );
Neo
Neo
Level VI

Re: How to set a Reference Line on each page with Page option in Graph Builder?

@Mark_Bailey  Stops working for me (JMP 16.2) if I invoke Local Data Filter on Age after plotting, as below

Neo_0-1726153593695.png

 

When it's too good to be true, it's neither
jthi
Super User

Re: How to set a Reference Line on each page with Page option in Graph Builder?

Easiest way is to add new column to your data table with same value for each of the rows and add that to your graph. This will work with filters

-Jarmo
Neo
Neo
Level VI

Re: How to set a Reference Line on each page with Page option in Graph Builder?

@jthi your suggestion works fine, except that I would like the line label to be on the right. Is there a way to change the location of the line label?

When it's too good to be true, it's neither
jthi
Super User

Re: How to set a Reference Line on each page with Page option in Graph Builder?

I don't remember which options are available in JMP16 as I'm mostly using JMP18 nowadays (with some JMP17 mixed in)

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

dt << New Column("Ref", Numeric, Continuous, Set Each Value(80));

gb = dt << Graph Builder(
	Size(528, 984),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight), Y(:Ref, Position(1)), Page(:age)),
	Elements(
		Points(X, Y(1), Legend(15)),
		Smoother(X, Y(1), Legend(16)),
		Line(Y(2), Legend(17))
	),
	Local Data Filter(
		Add Filter(
			columns(:age),
			Where(:age == {12, 15}),
			Display(:age, N Items(6))
		)
	),
	SendToReport(
		Dispatch({}, "400", ScaleBox,
			{Legend Model(
				17,
				Level Name(0, "Ref", Item ID("Mean(Ref)", 1)),
				Properties(
					0,
					{Line Label Properties(
						{Name Label(1), Name Label Position("Last")}
					)},
					Item ID("Mean(Ref)", 1)
				)
			)}
		)
	)
);

Write();

jthi_0-1726163173773.png

 

-Jarmo
hogi
Level XII

Re: How to set a Reference Line on each page with Page option in Graph Builder?

No need to change the data table.

Replicating the axis setting via

Link Page Axes( "Y Only" )

copies the reference lines as well.

e.g.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
	Link Page Axes( "Y Only" ),
	Variables( X( :height ), Y( :weight ), Page( :sex ), Overlay( :sex ) ),
	Elements( Points( X, Y), Smoother( X, Y) ),
	SendToReport(
		Dispatch( {}, "weight", ScaleBox,
			{Add Ref Line( 100, "Solid", "Black", "", 1 )}
		)
	)
);

 

hogi_0-1726169228867.png

 

 

jthi
Super User

Re: How to set a Reference Line on each page with Page option in Graph Builder?

That is also an option, but you do lose one of the benefits of Page: having different axis scaling for different "pages". It might not be an issue here and might be even a benefit.

-Jarmo
Neo
Neo
Level VI

Re: How to set a Reference Line on each page with Page option in Graph Builder?

@jthi Thanks.

Name Label Position("Last")

does not seem to be available/ working in JMP 16.2.

@hogi Reason for me choosing the Page option is so that I can get different y-axis scaling. I am sure there are other ways of doing this, but Page option seems easiest.

When it's too good to be true, it's neither
jthi
Super User

Re: How to set a Reference Line on each page with Page option in Graph Builder?

Then you might have to go back to Mark's solution and use filter change handler with it. Again no idea what are the limitations of JMP16 with this option

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


gb = dt << Graph Builder(
	Size(528, 984),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight), Page(:age)),
	Elements(
		Points(X, Y(1), Legend(15)),
		Smoother(X, Y(1), Legend(16))
	),
	Local Data Filter(
		Add Filter(
			columns(:age),
			Where(:age == {12, 15}),
			Display(:age, N Items(6))
		)
	)
);

add_reflines = EvalExpr(
	axis = Expr(gb) << XPath("//AxisBox");
	axis[2::N Items(axis)::2] << Add Ref Line(80, "Solid", "Red", "Reference", 1, 1, Label Settings({Opposite Axis(1)}));
);

f = Function({a}, add_reflines);

ldf = (Report(gb) << top parent)[OutlineBox("Local Data Filter")] << Get Scriptable Object;

rs = ldf << Make Filter Change Handler(f);

add_reflines;
Write();

This isn't the most robust option to do this, but it is fairly simple one.

-Jarmo