<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add reference lines from a reference line table into a control charts or variability char in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/48098#M27386</link>
    <description>&lt;P&gt;Loaclising JSL into the different languages that JMP supports is perfectly possible, but takes a certain extra effort. For some details on how this can be done, see the &lt;A href="https://community.jmp.com/t5/Discovery-Summit-2017/Localize-Your-Custom-JMP-Applications-for-International-Users/ta-p/44053" target="_self"&gt;Discovery paper&lt;/A&gt; by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2327"&gt;@hecht_jmp&lt;/a&gt;. For example, if you are working with outline nodes (as in the code above), and you reference them by name, this will almost certainly fail. On the other hand, referencing by number (as in the code above), may fail if the the structure of the report changes (for example, if the contents of the report are made richer between releases).&lt;/P&gt;
&lt;P&gt;Probably it's best to send an email to support@jmp.com and point them to this thread.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 09:28:40 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2017-12-04T09:28:40Z</dc:date>
    <item>
      <title>How to add reference lines from a reference line table into a control charts or variability charts?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/47574#M27117</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a table that holds the reference lines for each model. Each reference line is the yield expectation for each model. I intend to have a script that can import the reference lines from the central table and plot the reference line on the control charts or the variability charts when trending yields of each model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a my dummy data for the yield table&lt;/P&gt;&l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;&lt;TR&gt;&lt;TD&gt;IC3&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my dummy reference line table that needs to be imported into the control charts&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Model&lt;/TD&gt;&lt;TD&gt;Reference line for Yield expectation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IC1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IC2&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IC3&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The control chart or the variablility chart I am trying to plot has "Yield" in y axis &amp;amp; "WaferID" as the x-axis. Hence I cannot use the "column property" function in the "Yield" column to set the reference lines. I have more than 60 ICs to look at and I looking fdor some help where it could be automated than manually entered. Here is a sample snap shot of what I am trying to achieve. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample control chart.JPG" style="width: 883px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8402iB9A53E0CE74148F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sample control chart.JPG" alt="Sample control chart.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 21:56:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/47574#M27117</guid>
      <dc:creator>bharathu</dc:creator>
      <dc:date>2017-11-22T21:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add reference lines from a reference line table into a control charts or variability char</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/47581#M27123</link>
      <description>&lt;P&gt;The code below will produce:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-11-23 at 12.00.12.png" style="width: 495px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8403iA3252757B46CEA79/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-11-23 at 12.00.12.png" alt="Screen Shot 2017-11-23 at 12.00.12.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and should get you started. You can use 'Help &amp;gt; Books &amp;gt; Scripting Guide' and 'Help &amp;nbsp;&amp;gt; Scripting Index' to figure out what it's doing. Note that using the titles of the outline nodes is not currently very robust, but this could be improved, or done differently.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Yield table
dt1 = 
New Table( "Yield",
	Add Rows( 11 ),
	New Column( "Model",
		Character,
		"Nominal",
		Set Values(
			{"IC1", "IC1", "IC1", "IC2", "IC2", "IC2", "IC2", "IC3", "IC3", "IC3",
			"IC3"}
		)
	),
	New Column( "WaferID",
		Character( 16 ),
		"Nominal",
		Set Values( {"A", "B", "C", "E", "F", "G", "H", "R", "S", "T", "Z"} )
	),
	New Column( "Yield",
		Numeric,
		"Nominal",
		Format( "Best", 12 ),
		Set Values( [50, 60, 70, 30, 40, 50, 60, 80, 90, 70, 65] )
	)
);

// Reference table
dt2 = 
New Table( "Reference",
	Add Rows( 3 ),
	New Column( "Model", Character, "Nominal", Set Values( {"IC1", "IC2", "IC3"} ) ),
	New Column( "Value",
		Numeric,
		"Nominal",
		Format( "Best", 12 ),
		Set Values( [50, 40, 70] )
	)
);

// Start here . . .
// Get the values in dt2 into lists for later
modelVal = Column(dt2, "Model") &amp;lt;&amp;lt; getValues;
refVal = Column(dt2, "Value") &amp;lt;&amp;lt; getValues;

// Control Charts
cc = dt1 &amp;lt;&amp;lt; Control Chart(
						Sample Label( :WaferID ),
						Chart Col( :Yield, Individual Measurement ),
						By( :Model )
					);

// Loop over the control chart reports
for(r=1, r&amp;lt;=NItems(cc), r++,
	ccRep = Report(cc[r]);
	// Extract the level of 'Model' from the title of the outline node
	title = ccRep[OutlineBox(1)] &amp;lt;&amp;lt; getTitle;
	delimPos = Munger(title, 1, "=");
	level = Substr(title, delimPos+1, Length(title)-delimPos);
	// Get the reference value and plot it using a graphics script
	ref = refVal[Loc(modelVal, level)];
	Eval(
		Substitute(
				Expr(ccRep[FrameBox(1)] &amp;lt;&amp;lt; addGraphicsScript(PenColor("Blue"); HLine(TBD))),
				Expr(TBD),
				ref[1]
				);
			);
	);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Nov 2017 12:07:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/47581#M27123</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-11-23T12:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add reference lines from a reference line table into a control charts or variability char</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/47783#M27217</link>
      <description>&lt;P&gt;Thank you so much Ian. This works great.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:29:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/47783#M27217</guid>
      <dc:creator>bharathu</dc:creator>
      <dc:date>2017-11-28T16:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add reference lines from a reference line table into a control charts or variability char</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/48078#M27367</link>
      <description>&lt;P&gt;I tested this JSL on my Chinese JMP11. Get the following report in log. Still i can not draw reference line. Can you explain for me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GMan&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2017 02:53:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/48078#M27367</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2017-12-03T02:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add reference lines from a reference line table into a control charts or variability char</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/48098#M27386</link>
      <description>&lt;P&gt;Loaclising JSL into the different languages that JMP supports is perfectly possible, but takes a certain extra effort. For some details on how this can be done, see the &lt;A href="https://community.jmp.com/t5/Discovery-Summit-2017/Localize-Your-Custom-JMP-Applications-for-International-Users/ta-p/44053" target="_self"&gt;Discovery paper&lt;/A&gt; by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2327"&gt;@hecht_jmp&lt;/a&gt;. For example, if you are working with outline nodes (as in the code above), and you reference them by name, this will almost certainly fail. On the other hand, referencing by number (as in the code above), may fail if the the structure of the report changes (for example, if the contents of the report are made richer between releases).&lt;/P&gt;
&lt;P&gt;Probably it's best to send an email to support@jmp.com and point them to this thread.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 09:28:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/48098#M27386</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-12-04T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add reference lines from a reference line table into a control charts or variability char</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/52354#M29639</link>
      <description>&lt;P&gt;I took a different route. I split the Yield column by Model to create a separate column per Model. Then using Column Properties &amp;gt; Spec Limits &amp;gt; Target, entered the expected values (which are essentially targets, no?). See attached file.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:46:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-reference-lines-from-a-reference-line-table-into-a/m-p/52354#M29639</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2018-02-28T18:46:35Z</dc:date>
    </item>
  </channel>
</rss>

