cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-392934%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EGraph%20Builder%20%26gt%3B%20Spaghetti-Diagramm%20mit%20Durchschnitt%3A%20Wie%20erstellt%20man%20ohne%20Anpassung%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392934%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EHallo%20JMP-Community%2C%3C%2FP%3E%0A%3CP%3EIch%20versuche%2C%20eine%20gro%C3%9Fe%20Anzahl%20von%20%E2%80%9ESpaghetti-Plots%E2%80%9C%20mit%20Durchschnittslinien%20f%C3%BCr%203%20Kategorien%20zu%20erstellen%2C%20wie%20unten%20gezeigt%2C%20aber%20die%20einzige%20M%C3%B6glichkeit%2C%20dieses%20Beispiel%20zu%20erstellen%2C%20ist%20die%20Verwendung%20eines%20benutzerdefinierten%20Grafikskripts%3A%20Gibt%20es%20eine%20M%C3%B6glichkeit%2C%20dieses%20Diagramm%20zu%20erstellen%3F%20effizienter%2C%20indem%20Sie%20beispielsweise%20mehr%20als%20ein%20Overlay-Kriterium%20kombinieren%3F%20Wie%20lautet%20au%C3%9Ferdem%20die%20richtige%20Syntax%2C%20um%20den%20im%20Grafikskript%20hinzugef%C3%BCgten%20Markierungen%20eine%20bestimmte%20Farbe%20zuzuweisen%3F%3C%2FP%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%22Thierry_S_1-1623534495867.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Thierry_S_1-1623534495867.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33506iAD3D163055DAC800%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Thierry_S_1-1623534495867.png%22%20alt%3D%22Thierry_S_1-1623534495867.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2FGraphics%20Script%20Associated%20with%20Plot%20Above%0APen%20Size(%204%20)%3B%0AMarker%20Size(%208%20)%3B%0APen%20Color(%20blue%20)%3B%0ALine(%20%7B0%2C%200%7D%2C%20%7B2.0%2C%200.284%7D%2C%20%7B8.0%2C%200.564%7D%20)%3B%0AMarker(%20%7B0%2C%200%7D%2C%20%7B2.0%2C%200.284%7D%2C%20%7B8.0%2C%200.564%7D%20)%3B%0APen%20Color(%20green%20)%3B%0ALine(%20%7B0%2C%200%7D%2C%20%7B2.0%2C%2012.93%7D%2C%20%7B8.0%2C%2012.24%7D%20)%3B%0AMarker(%20%7B0%2C%200%7D%2C%20%7B2.0%2C%2012.93%7D%2C%20%7B8.0%2C%2012.24%7D%20)%3B%0APen%20Color(%20purple%20)%3B%0ALine(%20%7B0%2C%200%7D%2C%20%7B2.0%2C%206.17%7D%2C%20%7B8.0%2C%207.92%7D%20)%3B%0AMarker(%20%7B0%2C%200%7D%2C%20%7B2.0%2C%206.17%7D%2C%20%7B8.0%2C%207.92%7D%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIch%20danke%20Ihnen%20f%C3%BCr%20Ihre%20Hilfe.%3C%2FP%3E%0A%3CP%3EAm%20besten%2C%3C%2FP%3E%0A%3CP%3ETS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-392934%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EMassenanpassung%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392947%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Graph%20Builder%20%26gt%3B%20Spaghetti-Plot%20mit%20Durchschnitt%3A%20Wie%20erstelle%20ich%20ohne%20Anpassung%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392947%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F11634%22%20target%3D%22_blank%22%3E%40Thierry_S%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3EUnten%20ist%20eine%20fest%20verdrahtete%20Version%20Ihres%20Diagramms%20(in%20der%20N%C3%A4he%20Ihrer%20Version).Der%20festverdrahtete%20Teil%20k%C3%B6nnte%20ohne%20gro%C3%9Fen%20Aufwand%20verallgemeinert%20werden.Ich%20hoffe%2C%20Sie%20finden%20es%20n%C3%BCtzlich%20und%20wenn%20nicht%2C%20zumindest%20am%C3%BCsant%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_0-1623548029113.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1623548029113.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1623548029113.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33507i023AF1F73CAD92B8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22txnelson_0-1623548029113.png%22%20alt%3D%22txnelson_0-1623548029113.png%22%20%2F%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%0Adt%20%3D%20New%20Table(%20%22Example%22%2C%0A%20New%20Column(%20%22Group%22%2C%20character%20)%2C%0A%20New%20Column(%20%22Run%22%20)%2C%0A%20New%20Column(%20%22Duration%22%20)%2C%0A%20New%20Column(%20%22value%22%20)%0A)%3B%0A%0AFor(%20g%20%3D%201%2C%20g%20%26lt%3B%3D%203%2C%20g%2B%2B%2C%0A%20For(%20r%20%3D%201%2C%20r%20%26lt%3B%3D%2015%2C%20r%2B%2B%2C%0A%20%20dt%20%26lt%3B%26lt%3B%20add%20rows(%201%20)%3B%0A%20%20dt%3Avalue%5BN%20Rows(%20dt%20)%5D%20%3D%200%3B%0A%20%20dt%3ADuration%5BN%20Rows(%20dt%20)%5D%20%3D%200%3B%0A%20%20dt%3Agroup%5BN%20Rows(%20dt%20)%5D%20%3D%20%22Group%20%22%20%7C%7C%20Char(%20g%20)%3B%0A%20%20dt%3Arun%5BN%20Rows(%20dt%20)%5D%20%3D%20r%3B%0A%20)%0A)%3B%0A%0AFor(%20g%20%3D%201%2C%20g%20%26lt%3B%3D%203%2C%20g%2B%2B%2C%0A%20If(%0A%20%20g%20%3D%3D%201%2C%20a%20%3D%200%2C%0A%20%20g%20%3D%3D%202%2C%20a%20%3D%208%2C%0A%20%20a%20%3D%2013%0A%20)%3B%0A%20%0A%20For(%20r%20%3D%201%2C%20r%20%26lt%3B%3D%2015%2C%20r%2B%2B%2C%0A%20%20d%20%3D%202%3B%0A%20%20dt%20%26lt%3B%26lt%3B%20add%20rows(%201%20)%3B%0A%20%20dt%3Avalue%5BN%20Rows(%20dt%20)%5D%20%3D%20a%20%2B%20Random%20Uniform(%20a%20-%203%2C%20a%20%2B%203%20)%3B%0A%20%20dt%3ADuration%5BN%20Rows(%20dt%20)%5D%20%3D%20d%3B%0A%20%20dt%3Agroup%5BN%20Rows(%20dt%20)%5D%20%3D%20%22Group%20%22%20%7C%7C%20Char(%20g%20)%3B%0A%20%20dt%3Arun%5BN%20Rows(%20dt%20)%5D%20%3D%20r%3B%0A%20%20dt%20%26lt%3B%26lt%3B%20add%20rows(%201%20)%3B%0A%20%20d%20%3D%208%3B%0A%20%20dt%3Arun%5BN%20Rows(%20dt%20)%5D%20%3D%20r%3B%0A%20%20dt%3Avalue%5BN%20Rows(%20dt%20)%5D%20%3D%20dt%3Avalue%5BN%20Rows(%20dt%20)%20-%201%5D%20%2B%20Random%20Uniform(%20a%20-%203%2C%20a%20%2B%203%20)%3B%0A%20%20dt%3ADuration%5BN%20Rows(%20dt%20)%5D%20%3D%20d%3B%0A%20%20dt%3Agroup%5BN%20Rows(%20dt%20)%5D%20%3D%20%22Group%20%22%20%7C%7C%20Char(%20g%20)%3B%0A%20%20%0A%20)%3B%0A)%3B%0A%0Adt%20%26lt%3B%26lt%3B%20new%20column(%20%22Group%20Run%22%2C%20character%2C%20set%20each%20value(%3AGroup%20%7C%7C%20%22%20%22%20%7C%7C%20char(%20%3Arun%20)))%3B%0A%0Adt%3Agroup%20run%20%26lt%3B%26lt%3B%20set%20property(%0A%20%22value%20colors%22%2C%0A%20%7B%22Group%201%201%22%20%3D%20blue%2C%20%22Group%201%202%22%20%3D%20blue%2C%20%22Group%201%203%22%20%3D%20blue%2C%20%22Group%201%204%22%20%3D%20blue%2C%0A%20%22Group%201%205%22%20%3D%20blue%2C%20%22Group%201%206%22%20%3D%20blue%2C%20%22Group%201%207%22%20%3D%20blue%2C%20%22Group%201%208%22%20%3D%20blue%2C%0A%20%22Group%201%209%22%20%3D%20blue%2C%20%22Group%201%2010%22%20%3D%20blue%2C%20%22Group%201%2011%22%20%3D%20blue%2C%20%22Group%201%2012%22%20%3D%20blue%2C%20%22Group%201%2013%22%0A%20%20%3D%20blue%2C%20%22Group%201%2014%22%20%3D%20blue%2C%20%22Group%201%2015%22%20%3D%20blue%2C%20%22Mean%201%201%22%20%3D%20blue%2C%20%22Group%202%201%22%20%3D%20purple%2C%20%22Group%202%202%22%20%3D%20purple%2C%20%22Group%202%203%22%0A%20%20%3D%20purple%2C%20%22Group%202%204%22%20%3D%20purple%2C%20%22Group%202%205%22%20%3D%20purple%2C%20%22Group%202%206%22%20%3D%20purple%2C%20%22Group%202%207%22%20%3D%0A%20purple%2C%20%22Group%202%208%22%20%3D%20purple%2C%20%22Group%202%209%22%20%3D%20purple%2C%20%22Group%202%2010%22%20%3D%20purple%2C%20%22Group%202%2011%22%20%3D%0A%20purple%2C%20%22Group%202%2012%22%20%3D%20purple%2C%20%22Group%202%2013%22%20%3D%20purple%2C%20%22Group%202%2014%22%20%3D%20purple%2C%20%22Group%202%2015%22%20%3D%0A%20purple%2C%20%22Mean%202%201%22%20%3D%20purple%2C%20%22Group%203%201%22%20%3D%20green%2C%20%22Group%203%202%22%20%3D%20green%2C%20%22Group%203%203%22%20%3D%20green%2C%20%22Group%203%204%22%20%3D%20green%2C%0A%20%22Group%203%205%22%20%3D%20green%2C%20%22Group%203%206%22%20%3D%20green%2C%20%22Group%203%207%22%20%3D%20green%2C%20%22Group%203%208%22%20%3D%20green%2C%0A%20%22Group%203%209%22%20%3D%20green%2C%20%22Group%203%2010%22%20%3D%20green%2C%20%22Group%203%2011%22%20%3D%20green%2C%20%22Group%203%2012%22%20%3D%20green%2C%0A%20%22Group%203%2013%22%20%3D%20green%2C%20%22Group%203%2014%22%20%3D%20green%2C%20%22Group%203%2015%22%20%3D%20green%2C%20%22Mean%203%201%22%20%3D%20green%20%7D%0A)%3B%0A%0AdtSum%20%3D%20dt%20%26lt%3B%26lt%3B%20Summary(%0A%20Group(%20%3AGroup%2C%20%3ADuration%20)%2C%0A%20Mean(%20%3Avalue%20)%2C%0A%20Freq(%20%22None%22%20)%2C%0A%20Weight(%20%22None%22%20)%2C%0A%20statistics%20column%20name%20format(%20%22column%22%20)%2C%0A%20Link%20to%20original%20data%20table(%200%20)%0A)%3B%0A%0AdtSum%20%26lt%3B%26lt%3B%20delete%20columns(%3AN%20Rows)%3B%0AdtSum%20%26lt%3B%26lt%3B%20New%20Column(%22Group%20Run%22%2C%0A%20character%2C%20set%20each%20value(%22Mean%20%22%20%7C%7C%20char(word(2%2C%20%3AGroup))%20%7C%7C%20%22%201%22)%0A)%3B%0A%0AdtFinal%20%3D%20dt%20%26lt%3B%26lt%3B%20Concatenate(dtSum%0A)%3B%0A%0Agb%20%3D%20Graph%20Builder(%0A%20Variables(%20X(%20%3ADuration%20)%2C%20Y(%20%3Avalue%20)%2C%20Overlay(%20%3AGroup%20Run%20)%20)%2C%0A%20Elements(%20Line(%20X%2C%20Y%2C%20Legend(%207%20)%20)%20)%2C%0A%20show%20control%20panel(%200%20)%2C%0A%20SendToReport(%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22400%22%2C%0A%20%20%20ScaleBox%2C%0A%20%20%20%7BLegend%20Model(%0A%20%20%20%207%2C%0A%20%20%20%20Properties(%200%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%201%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%201%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%202%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%202%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%203%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%203%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%204%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%204%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%205%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%205%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%206%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%206%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%207%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%207%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%208%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%208%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%209%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%209%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%2010%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2010%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%2011%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2011%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%2012%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2012%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%2013%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2013%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%2014%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2014%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%201%2015%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2015%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%201%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2016%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%202%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2017%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%203%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2018%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%204%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2019%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%205%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2020%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%206%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2021%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%207%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2022%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%208%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2023%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%209%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2024%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%2010%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2025%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%2011%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2026%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%2012%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2027%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%2013%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2028%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%2014%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2029%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%202%2015%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2030%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%201%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2031%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%202%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2032%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%203%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2033%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%204%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2034%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%205%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2035%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%206%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2036%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%207%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2037%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%208%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2038%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%209%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2039%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%2010%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2040%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%2011%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2041%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%2012%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2042%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%2013%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2043%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%2014%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2044%2C%20%7BLine%20Width(%201%20)%7D%2C%20Item%20ID(%20%22Group%203%2015%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2045%2C%20%7BLine%20Width(%204%20)%7D%2C%20Item%20ID(%20%22Mean%201%201%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2046%2C%20%7BLine%20Width(%204%20)%7D%2C%20Item%20ID(%20%22Mean%202%201%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%2047%2C%20%7BLine%20Width(%204%20)%7D%2C%20Item%20ID(%20%22Mean%203%201%22%2C%201%20)%20)%0A%20%20%20)%7D%0A)))%3B%0A%0Areport(gb)%5BLegendBox(1)%5D%26lt%3B%3CVISIBILITY%3E%3C%2FVISIBILITY%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-393093%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Graph%20Builder%20%26gt%3B%20Spaghetti-Plot%20mit%20Durchschnitt%3A%20Wie%20erstelle%20ich%20ohne%20Anpassung%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-393093%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20denke%2C%20Sie%20k%C3%B6nnten%20dies%20mit%20einem%20einzigen%20%C3%9Cberlagerungskriterium%20mit%206%20Stufen%20tun%3A%20blaues%20Dunkel%2C%20blaues%20Licht%20usw.Passen%20Sie%20dann%20die%20Farbe%20mit%20der%20Legende%20an.%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%22ih_0-1623679070186.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ih_0-1623679070186.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ih_0-1623679070186.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33516iA1E064A831E355BA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ih_0-1623679070186.png%22%20alt%3D%22ih_0-1623679070186.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESkript%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EMehr%20sehen...%3C%2FA%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20default%20to%20here(1)%3B%0A%0Adt%20%3D%20Open(%22%24Sample_data%5CDesign%20Experiment%5CAlgorithm%20Data.jmp%22)%3B%0A%0Adt%20%26lt%3B%26lt%3B%20New%20Column(%22Overlay%22%2C%20Character%2C%20%22Nominal%22%2C%20Formula(%3AAlgorithm%20%7C%7C%20%22__%22%20%7C%7C%20%3ACompiler))%3B%0A%0Adt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Size(%20834%2C%20534%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%20X(%20%3ABeta%20)%2C%20Y(%20%3AAlpha%20)%2C%20Overlay(%20%3AOverlay%20)%20)%2C%0A%20Elements(%20Line(%20X%2C%20Y%2C%20Legend(%2010%20)%20)%20)%2C%0A%20SendToReport(%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22400%22%2C%0A%20%20%20ScaleBox%2C%0A%20%20%20%7BLegend%20Model(%0A%20%20%20%2010%2C%0A%20%20%20%20Properties(%200%2C%20%7BLine%20Color(%2053%20)%7D%2C%20Item%20ID(%20%22Dynamic__A%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%0A%20%20%20%20%201%2C%0A%20%20%20%20%20%7BLine%20Color(%2053%20)%2C%20Transparency(%200.3%20)%7D%2C%0A%20%20%20%20%20Item%20ID(%20%22Dynamic__B%22%2C%201%20)%0A%20%20%20%20)%2C%0A%20%20%20%20Properties(%202%2C%20%7BLine%20Color(%2020%20)%7D%2C%20Item%20ID(%20%22Greedy__A%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%0A%20%20%20%20%203%2C%0A%20%20%20%20%20%7BLine%20Color(%2020%20)%2C%20Transparency(%200.3%20)%7D%2C%0A%20%20%20%20%20Item%20ID(%20%22Greedy__B%22%2C%201%20)%0A%20%20%20%20)%2C%0A%20%20%20%20Properties(%204%2C%20%7BLine%20Color(%206%20)%7D%2C%20Item%20ID(%20%22Transform__A%22%2C%201%20)%20)%2C%0A%20%20%20%20Properties(%0A%20%20%20%20%205%2C%0A%20%20%20%20%20%7BLine%20Color(%206%20)%2C%20Transparency(%200.3%20)%7D%2C%0A%20%20%20%20%20Item%20ID(%20%22Transform__B%22%2C%201%20)%0A%20%20%20%20)%0A%20%20%20)%7D%0A%20%20)%0A%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3ENamen%20sind%20standardm%C3%A4%C3%9Fig%20hier(1)%3B%20dt%20%3D%20Open(%22%24Sample_data%5CDesign%20Experiment%5CAlgorithm%20Data.jmp%22)%3B%20dt%20%26lt%3B%26lt%3B%20Neue%20Spalte(%22Overlay%22%2C%20Zeichen%2C%20%22Nominal%22%2C%20Formula(%3AAlgorithmus%20%7C%7C%20%22__%22%20%7C%7C%20%3ACompiler))%3B%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%20Size(%20834%2C%20534%20)%2C%20Show%20Control%20Panel(%200%20)%2C%20Variables(%20X(%20%3ABeta%20)%2C%20Y(%20%3AAlpha%20)%2C%20Overlay(%20%3AOverlay)%20)%2C%20Elemente(%20Line(%20X%2C%20Y%2C%20Legend%20(%2010%20)%20)%2C%20SendToReport(%20Dispatch(%20%7B%7D%2C%20%22400%22%2C%20ScaleBox%2C%20%7BLegend%20Model(%2010%2C%20Properties(%200%2C%20%7BLine%20Color(%2053%20)%7D%2C%20Item%20ID(%20%22Dynamic__A%22%2C%201%20)%20)%2C%20Properties(%201%2C%20%7BLinienfarbe(%2053%20)%2C%20Transparenz(%200.3%20)%7D%2C%20Element-ID(%20%22Dynamic__B%22%2C%201%20)%20)%2C%20Eigenschaften(%202%2C%20%7BLinienfarbe(%2020%20)%7D%2C%20Element-ID(%20%22Greedy__A%22%2C%201%20)%20)%2C%20Eigenschaften%20(%203%2C%20%7BLinienfarbe(%2020%20)%2C%20Transparenz(%200.3%20)%7D%2C%20Element-ID(%20%22Greedy__B%22%2C%201%20)%20)%2C%20Eigenschaften(%204%2C%20%7BLinienfarbe(%206%20)%7D%2C%20Element-ID(%20%22Transform__A%22%2C%201%20)%20)%2C%20Eigenschaften(%205%2C%20%7BLinienfarbe(%206%20)%2C%20Transparenz(%200.3)%7D%2C%20Element-ID(%20%22Transform__B%22%2C%201%20)%20)%20)%7D%20)%20)%3B%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Thierry_S
Super User

Graph Builder > Spaghetti Plot With Average: How to create without Customization?

Hi JMP Community,

I'm trying to produce a large number of "spaghetti plots" with average lines for 3 categories as shown below but the only way I was able to build this example is by using a Custom Graphics Script: Is there a way to produce this graph more efficiently by for example combining more than 1 overlay criteria? Also, what is the proper syntax to assign specific color to the Markers added in the Graphics Script?

 

Thierry_S_1-1623534495867.png

//Graphics Script Associated with Plot Above
Pen Size( 4 );
Marker Size( 8 );
Pen Color( blue );
Line( {0, 0}, {2.0, 0.284}, {8.0, 0.564} );
Marker( {0, 0}, {2.0, 0.284}, {8.0, 0.564} );
Pen Color( green );
Line( {0, 0}, {2.0, 12.93}, {8.0, 12.24} );
Marker( {0, 0}, {2.0, 12.93}, {8.0, 12.24} );
Pen Color( purple );
Line( {0, 0}, {2.0, 6.17}, {8.0, 7.92} );
Marker( {0, 0}, {2.0, 6.17}, {8.0, 7.92} );

Thank you for your help.

Best,

TS

Thierry R. Sornasse
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Graph Builder > Spaghetti Plot With Average: How to create without Customization?

@Thierry_S ,

Below is a hard wired version of your graph(close to your version that is).  The hardwired part could be generalized without much effort.  I hope you find it useful, and if not, at least amusing

txnelson_0-1623548029113.png

Names Default To Here( 1 );
dt = New Table( "Example",
	New Column( "Group", character ),
	New Column( "Run" ),
	New Column( "Duration" ),
	New Column( "value" )
);

For( g = 1, g <= 3, g++,
	For( r = 1, r <= 15, r++,
		dt << add rows( 1 );
		dt:value[N Rows( dt )] = 0;
		dt:Duration[N Rows( dt )] = 0;
		dt:group[N Rows( dt )] = "Group " || Char( g );
		dt:run[N Rows( dt )] = r;
	)
);

For( g = 1, g <= 3, g++,
	If(
		g == 1, a = 0,
		g == 2, a = 8,
		a = 13
	);
	
	For( r = 1, r <= 15, r++,
		d = 2;
		dt << add rows( 1 );
		dt:value[N Rows( dt )] = a + Random Uniform( a - 3, a + 3 );
		dt:Duration[N Rows( dt )] = d;
		dt:group[N Rows( dt )] = "Group " || Char( g );
		dt:run[N Rows( dt )] = r;
		dt << add rows( 1 );
		d = 8;
		dt:run[N Rows( dt )] = r;
		dt:value[N Rows( dt )] = dt:value[N Rows( dt ) - 1] + Random Uniform( a - 3, a + 3 );
		dt:Duration[N Rows( dt )] = d;
		dt:group[N Rows( dt )] = "Group " || Char( g );
		
	);
);

dt << new column( "Group Run", character, set each value(:Group || " " || char( :run )));

dt:group run << set property(
	"value colors",
	{"Group 1 1" = blue, "Group 1 2" = blue, "Group 1 3" = blue, "Group 1 4" = blue,
	"Group 1 5" = blue, "Group 1 6" = blue, "Group 1 7" = blue, "Group 1 8" = blue,
	"Group 1 9" = blue, "Group 1 10" = blue, "Group 1 11" = blue, "Group 1 12" = blue, "Group 1 13"
	 = blue, "Group 1 14" = blue, "Group 1 15" = blue, "Mean 1 1" = blue, "Group 2 1" = purple, "Group 2 2" = purple, "Group 2 3"
	 = purple, "Group 2 4" = purple, "Group 2 5" = purple, "Group 2 6" = purple, "Group 2 7" =
	purple, "Group 2 8" = purple, "Group 2 9" = purple, "Group 2 10" = purple, "Group 2 11" =
	purple, "Group 2 12" = purple, "Group 2 13" = purple, "Group 2 14" = purple, "Group 2 15" =
	purple, "Mean 2 1" = purple, "Group 3 1" = green, "Group 3 2" = green, "Group 3 3" = green, "Group 3 4" = green,
	"Group 3 5" = green, "Group 3 6" = green, "Group 3 7" = green, "Group 3 8" = green,
	"Group 3 9" = green, "Group 3 10" = green, "Group 3 11" = green, "Group 3 12" = green,
	"Group 3 13" = green, "Group 3 14" = green, "Group 3 15" = green, "Mean 3 1" = green }
);

dtSum = dt << Summary(
	Group( :Group, :Duration ),
	Mean( :value ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "column" ),
	Link to original data table( 0 )
);

dtSum << delete columns(:N Rows);
dtSum << New Column("Group Run",
	character, set each value("Mean " || char(word(2, :Group)) || " 1")
);

dtFinal = dt << Concatenate(dtSum
);

gb = Graph Builder(
	Variables( X( :Duration ), Y( :value ), Overlay( :Group Run ) ),
	Elements( Line( X, Y, Legend( 7 ) ) ),
	show control panel( 0 ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				7,
				Properties( 0, {Line Width( 1 )}, Item ID( "Group 1 1", 1 ) ),
				Properties( 1, {Line Width( 1 )}, Item ID( "Group 1 2", 1 ) ),
				Properties( 2, {Line Width( 1 )}, Item ID( "Group 1 3", 1 ) ),
				Properties( 3, {Line Width( 1 )}, Item ID( "Group 1 4", 1 ) ),
				Properties( 4, {Line Width( 1 )}, Item ID( "Group 1 5", 1 ) ),
				Properties( 5, {Line Width( 1 )}, Item ID( "Group 1 6", 1 ) ),
				Properties( 6, {Line Width( 1 )}, Item ID( "Group 1 7", 1 ) ),
				Properties( 7, {Line Width( 1 )}, Item ID( "Group 1 8", 1 ) ),
				Properties( 8, {Line Width( 1 )}, Item ID( "Group 1 9", 1 ) ),
				Properties( 9, {Line Width( 1 )}, Item ID( "Group 1 10", 1 ) ),
				Properties( 10, {Line Width( 1 )}, Item ID( "Group 1 11", 1 ) ),
				Properties( 11, {Line Width( 1 )}, Item ID( "Group 1 12", 1 ) ),
				Properties( 12, {Line Width( 1 )}, Item ID( "Group 1 13", 1 ) ),
				Properties( 13, {Line Width( 1 )}, Item ID( "Group 1 14", 1 ) ),
				Properties( 14, {Line Width( 1 )}, Item ID( "Group 1 15", 1 ) ),
				Properties( 15, {Line Width( 1 )}, Item ID( "Group 2 1", 1 ) ),
				Properties( 16, {Line Width( 1 )}, Item ID( "Group 2 2", 1 ) ),
				Properties( 17, {Line Width( 1 )}, Item ID( "Group 2 3", 1 ) ),
				Properties( 18, {Line Width( 1 )}, Item ID( "Group 2 4", 1 ) ),
				Properties( 19, {Line Width( 1 )}, Item ID( "Group 2 5", 1 ) ),
				Properties( 20, {Line Width( 1 )}, Item ID( "Group 2 6", 1 ) ),
				Properties( 21, {Line Width( 1 )}, Item ID( "Group 2 7", 1 ) ),
				Properties( 22, {Line Width( 1 )}, Item ID( "Group 2 8", 1 ) ),
				Properties( 23, {Line Width( 1 )}, Item ID( "Group 2 9", 1 ) ),
				Properties( 24, {Line Width( 1 )}, Item ID( "Group 2 10", 1 ) ),
				Properties( 25, {Line Width( 1 )}, Item ID( "Group 2 11", 1 ) ),
				Properties( 26, {Line Width( 1 )}, Item ID( "Group 2 12", 1 ) ),
				Properties( 27, {Line Width( 1 )}, Item ID( "Group 2 13", 1 ) ),
				Properties( 28, {Line Width( 1 )}, Item ID( "Group 2 14", 1 ) ),
				Properties( 29, {Line Width( 1 )}, Item ID( "Group 2 15", 1 ) ),
				Properties( 30, {Line Width( 1 )}, Item ID( "Group 3 1", 1 ) ),
				Properties( 31, {Line Width( 1 )}, Item ID( "Group 3 2", 1 ) ),
				Properties( 32, {Line Width( 1 )}, Item ID( "Group 3 3", 1 ) ),
				Properties( 33, {Line Width( 1 )}, Item ID( "Group 3 4", 1 ) ),
				Properties( 34, {Line Width( 1 )}, Item ID( "Group 3 5", 1 ) ),
				Properties( 35, {Line Width( 1 )}, Item ID( "Group 3 6", 1 ) ),
				Properties( 36, {Line Width( 1 )}, Item ID( "Group 3 7", 1 ) ),
				Properties( 37, {Line Width( 1 )}, Item ID( "Group 3 8", 1 ) ),
				Properties( 38, {Line Width( 1 )}, Item ID( "Group 3 9", 1 ) ),
				Properties( 39, {Line Width( 1 )}, Item ID( "Group 3 10", 1 ) ),
				Properties( 40, {Line Width( 1 )}, Item ID( "Group 3 11", 1 ) ),
				Properties( 41, {Line Width( 1 )}, Item ID( "Group 3 12", 1 ) ),
				Properties( 42, {Line Width( 1 )}, Item ID( "Group 3 13", 1 ) ),
				Properties( 43, {Line Width( 1 )}, Item ID( "Group 3 14", 1 ) ),
				Properties( 44, {Line Width( 1 )}, Item ID( "Group 3 15", 1 ) ),
				Properties( 45, {Line Width( 4 )}, Item ID( "Mean 1 1", 1 ) ),
				Properties( 46, {Line Width( 4 )}, Item ID( "Mean 2 1", 1 ) ),
				Properties( 47, {Line Width( 4 )}, Item ID( "Mean 3 1", 1 ) )
			)}
)));

report(gb)[LegendBox(1)]<<visibility("collapse");



 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Graph Builder > Spaghetti Plot With Average: How to create without Customization?

@Thierry_S ,

Below is a hard wired version of your graph(close to your version that is).  The hardwired part could be generalized without much effort.  I hope you find it useful, and if not, at least amusing

txnelson_0-1623548029113.png

Names Default To Here( 1 );
dt = New Table( "Example",
	New Column( "Group", character ),
	New Column( "Run" ),
	New Column( "Duration" ),
	New Column( "value" )
);

For( g = 1, g <= 3, g++,
	For( r = 1, r <= 15, r++,
		dt << add rows( 1 );
		dt:value[N Rows( dt )] = 0;
		dt:Duration[N Rows( dt )] = 0;
		dt:group[N Rows( dt )] = "Group " || Char( g );
		dt:run[N Rows( dt )] = r;
	)
);

For( g = 1, g <= 3, g++,
	If(
		g == 1, a = 0,
		g == 2, a = 8,
		a = 13
	);
	
	For( r = 1, r <= 15, r++,
		d = 2;
		dt << add rows( 1 );
		dt:value[N Rows( dt )] = a + Random Uniform( a - 3, a + 3 );
		dt:Duration[N Rows( dt )] = d;
		dt:group[N Rows( dt )] = "Group " || Char( g );
		dt:run[N Rows( dt )] = r;
		dt << add rows( 1 );
		d = 8;
		dt:run[N Rows( dt )] = r;
		dt:value[N Rows( dt )] = dt:value[N Rows( dt ) - 1] + Random Uniform( a - 3, a + 3 );
		dt:Duration[N Rows( dt )] = d;
		dt:group[N Rows( dt )] = "Group " || Char( g );
		
	);
);

dt << new column( "Group Run", character, set each value(:Group || " " || char( :run )));

dt:group run << set property(
	"value colors",
	{"Group 1 1" = blue, "Group 1 2" = blue, "Group 1 3" = blue, "Group 1 4" = blue,
	"Group 1 5" = blue, "Group 1 6" = blue, "Group 1 7" = blue, "Group 1 8" = blue,
	"Group 1 9" = blue, "Group 1 10" = blue, "Group 1 11" = blue, "Group 1 12" = blue, "Group 1 13"
	 = blue, "Group 1 14" = blue, "Group 1 15" = blue, "Mean 1 1" = blue, "Group 2 1" = purple, "Group 2 2" = purple, "Group 2 3"
	 = purple, "Group 2 4" = purple, "Group 2 5" = purple, "Group 2 6" = purple, "Group 2 7" =
	purple, "Group 2 8" = purple, "Group 2 9" = purple, "Group 2 10" = purple, "Group 2 11" =
	purple, "Group 2 12" = purple, "Group 2 13" = purple, "Group 2 14" = purple, "Group 2 15" =
	purple, "Mean 2 1" = purple, "Group 3 1" = green, "Group 3 2" = green, "Group 3 3" = green, "Group 3 4" = green,
	"Group 3 5" = green, "Group 3 6" = green, "Group 3 7" = green, "Group 3 8" = green,
	"Group 3 9" = green, "Group 3 10" = green, "Group 3 11" = green, "Group 3 12" = green,
	"Group 3 13" = green, "Group 3 14" = green, "Group 3 15" = green, "Mean 3 1" = green }
);

dtSum = dt << Summary(
	Group( :Group, :Duration ),
	Mean( :value ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "column" ),
	Link to original data table( 0 )
);

dtSum << delete columns(:N Rows);
dtSum << New Column("Group Run",
	character, set each value("Mean " || char(word(2, :Group)) || " 1")
);

dtFinal = dt << Concatenate(dtSum
);

gb = Graph Builder(
	Variables( X( :Duration ), Y( :value ), Overlay( :Group Run ) ),
	Elements( Line( X, Y, Legend( 7 ) ) ),
	show control panel( 0 ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				7,
				Properties( 0, {Line Width( 1 )}, Item ID( "Group 1 1", 1 ) ),
				Properties( 1, {Line Width( 1 )}, Item ID( "Group 1 2", 1 ) ),
				Properties( 2, {Line Width( 1 )}, Item ID( "Group 1 3", 1 ) ),
				Properties( 3, {Line Width( 1 )}, Item ID( "Group 1 4", 1 ) ),
				Properties( 4, {Line Width( 1 )}, Item ID( "Group 1 5", 1 ) ),
				Properties( 5, {Line Width( 1 )}, Item ID( "Group 1 6", 1 ) ),
				Properties( 6, {Line Width( 1 )}, Item ID( "Group 1 7", 1 ) ),
				Properties( 7, {Line Width( 1 )}, Item ID( "Group 1 8", 1 ) ),
				Properties( 8, {Line Width( 1 )}, Item ID( "Group 1 9", 1 ) ),
				Properties( 9, {Line Width( 1 )}, Item ID( "Group 1 10", 1 ) ),
				Properties( 10, {Line Width( 1 )}, Item ID( "Group 1 11", 1 ) ),
				Properties( 11, {Line Width( 1 )}, Item ID( "Group 1 12", 1 ) ),
				Properties( 12, {Line Width( 1 )}, Item ID( "Group 1 13", 1 ) ),
				Properties( 13, {Line Width( 1 )}, Item ID( "Group 1 14", 1 ) ),
				Properties( 14, {Line Width( 1 )}, Item ID( "Group 1 15", 1 ) ),
				Properties( 15, {Line Width( 1 )}, Item ID( "Group 2 1", 1 ) ),
				Properties( 16, {Line Width( 1 )}, Item ID( "Group 2 2", 1 ) ),
				Properties( 17, {Line Width( 1 )}, Item ID( "Group 2 3", 1 ) ),
				Properties( 18, {Line Width( 1 )}, Item ID( "Group 2 4", 1 ) ),
				Properties( 19, {Line Width( 1 )}, Item ID( "Group 2 5", 1 ) ),
				Properties( 20, {Line Width( 1 )}, Item ID( "Group 2 6", 1 ) ),
				Properties( 21, {Line Width( 1 )}, Item ID( "Group 2 7", 1 ) ),
				Properties( 22, {Line Width( 1 )}, Item ID( "Group 2 8", 1 ) ),
				Properties( 23, {Line Width( 1 )}, Item ID( "Group 2 9", 1 ) ),
				Properties( 24, {Line Width( 1 )}, Item ID( "Group 2 10", 1 ) ),
				Properties( 25, {Line Width( 1 )}, Item ID( "Group 2 11", 1 ) ),
				Properties( 26, {Line Width( 1 )}, Item ID( "Group 2 12", 1 ) ),
				Properties( 27, {Line Width( 1 )}, Item ID( "Group 2 13", 1 ) ),
				Properties( 28, {Line Width( 1 )}, Item ID( "Group 2 14", 1 ) ),
				Properties( 29, {Line Width( 1 )}, Item ID( "Group 2 15", 1 ) ),
				Properties( 30, {Line Width( 1 )}, Item ID( "Group 3 1", 1 ) ),
				Properties( 31, {Line Width( 1 )}, Item ID( "Group 3 2", 1 ) ),
				Properties( 32, {Line Width( 1 )}, Item ID( "Group 3 3", 1 ) ),
				Properties( 33, {Line Width( 1 )}, Item ID( "Group 3 4", 1 ) ),
				Properties( 34, {Line Width( 1 )}, Item ID( "Group 3 5", 1 ) ),
				Properties( 35, {Line Width( 1 )}, Item ID( "Group 3 6", 1 ) ),
				Properties( 36, {Line Width( 1 )}, Item ID( "Group 3 7", 1 ) ),
				Properties( 37, {Line Width( 1 )}, Item ID( "Group 3 8", 1 ) ),
				Properties( 38, {Line Width( 1 )}, Item ID( "Group 3 9", 1 ) ),
				Properties( 39, {Line Width( 1 )}, Item ID( "Group 3 10", 1 ) ),
				Properties( 40, {Line Width( 1 )}, Item ID( "Group 3 11", 1 ) ),
				Properties( 41, {Line Width( 1 )}, Item ID( "Group 3 12", 1 ) ),
				Properties( 42, {Line Width( 1 )}, Item ID( "Group 3 13", 1 ) ),
				Properties( 43, {Line Width( 1 )}, Item ID( "Group 3 14", 1 ) ),
				Properties( 44, {Line Width( 1 )}, Item ID( "Group 3 15", 1 ) ),
				Properties( 45, {Line Width( 4 )}, Item ID( "Mean 1 1", 1 ) ),
				Properties( 46, {Line Width( 4 )}, Item ID( "Mean 2 1", 1 ) ),
				Properties( 47, {Line Width( 4 )}, Item ID( "Mean 3 1", 1 ) )
			)}
)));

report(gb)[LegendBox(1)]<<visibility("collapse");



 

Jim
ih
Super User (Alumni) ih
Super User (Alumni)

Re: Graph Builder > Spaghetti Plot With Average: How to create without Customization?

I think you could do this with a single overlay criteria that had 6 levels: blue dark, blue light, etc..  Then customize color with the legend.

 

ih_0-1623679070186.png

 

Script:

View more...
Names default to here(1);

dt = Open("$Sample_data\Design Experiment\Algorithm Data.jmp");

dt << New Column("Overlay", Character, "Nominal", Formula(:Algorithm || "__" || :Compiler));

dt << Graph Builder(
	Size( 834, 534 ),
	Show Control Panel( 0 ),
	Variables( X( :Beta ), Y( :Alpha ), Overlay( :Overlay ) ),
	Elements( Line( X, Y, Legend( 10 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				10,
				Properties( 0, {Line Color( 53 )}, Item ID( "Dynamic__A", 1 ) ),
				Properties(
					1,
					{Line Color( 53 ), Transparency( 0.3 )},
					Item ID( "Dynamic__B", 1 )
				),
				Properties( 2, {Line Color( 20 )}, Item ID( "Greedy__A", 1 ) ),
				Properties(
					3,
					{Line Color( 20 ), Transparency( 0.3 )},
					Item ID( "Greedy__B", 1 )
				),
				Properties( 4, {Line Color( 6 )}, Item ID( "Transform__A", 1 ) ),
				Properties(
					5,
					{Line Color( 6 ), Transparency( 0.3 )},
					Item ID( "Transform__B", 1 )
				)
			)}
		)
	)
);

 

Recommended Articles