<?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 Editing Control Chart after Creation in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Editing-Control-Chart-after-Creation/m-p/222040#M44309</link>
    <description>&lt;P&gt;I'm trying to create a script to format the output of the Process Screening tool's control charts so they're more pretty. Obviously, I can't go in and change the code of the Process Screening tool itself, so the problem I'm faced with is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given a preexisting control chart object, how can I:&lt;/P&gt;&lt;P&gt;1. Add a column to the subgrouping&lt;/P&gt;&lt;P&gt;2. Delete the Moving Range graph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, I currently have a &lt;EM&gt;myControlChart&lt;/EM&gt; object on which I was able to successfully run&amp;nbsp;&lt;EM&gt;myControlChart&amp;lt;&amp;lt;showLimitSummaries(0);&lt;/EM&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 14:01:14 GMT</pubDate>
    <dc:creator>DavidLeber</dc:creator>
    <dc:date>2019-08-16T14:01:14Z</dc:date>
    <item>
      <title>Editing Control Chart after Creation</title>
      <link>https://community.jmp.com/t5/Discussions/Editing-Control-Chart-after-Creation/m-p/222040#M44309</link>
      <description>&lt;P&gt;I'm trying to create a script to format the output of the Process Screening tool's control charts so they're more pretty. Obviously, I can't go in and change the code of the Process Screening tool itself, so the problem I'm faced with is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given a preexisting control chart object, how can I:&lt;/P&gt;&lt;P&gt;1. Add a column to the subgrouping&lt;/P&gt;&lt;P&gt;2. Delete the Moving Range graph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, I currently have a &lt;EM&gt;myControlChart&lt;/EM&gt; object on which I was able to successfully run&amp;nbsp;&lt;EM&gt;myControlChart&amp;lt;&amp;lt;showLimitSummaries(0);&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 14:01:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Editing-Control-Chart-after-Creation/m-p/222040#M44309</guid>
      <dc:creator>DavidLeber</dc:creator>
      <dc:date>2019-08-16T14:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Control Chart after Creation</title>
      <link>https://community.jmp.com/t5/Discussions/Editing-Control-Chart-after-Creation/m-p/222057#M44312</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12803"&gt;@DavidLeber&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You might have more luck working with the Control Chart Builder under Analyze-&amp;gt;Quality and Process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you drop your column on the y-axis it'll generate the chart and then you can inspect the JSL code from the red hot button. You'd get something like this (if you also have an x-column):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Control Chart Builder(
	Show Two Shewhart Charts( 0 ),
	Show Capability( 0 ),
	Variables( Subgroup (:X-column here ), Y( :Y-column here ) ),
	Chart( Position (1), Points( Statistic( "Individual" ) ), Limits( Sigma( "Moving Range" ) ) ),
	Chart( Position( 2 ), Limits( Sigma( "Moving Range" ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; To address your second point, just eliminate the "Poisition(1)," part and the whole section on "Chart( Position (2)....". Then you'll just get the XBar chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You could also go to Analyze-&amp;gt;Quality and Process-&amp;gt;Control Chart-&amp;gt;Xbar, for example, depending on what you're really after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm not sure I understand what you are wanting to do with your first point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 15:47:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Editing-Control-Chart-after-Creation/m-p/222057#M44312</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-08-16T15:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Control Chart after Creation</title>
      <link>https://community.jmp.com/t5/Discussions/Editing-Control-Chart-after-Creation/m-p/222060#M44313</link>
      <description>&lt;P&gt;I was able to find a solution! The key was getting the graph builder box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;var = Current Report();&amp;nbsp; &amp;nbsp; //Returns a reference to the report that's currently open, i.e. the Control Chart generated by Process Screening

gbb = var[GraphBuilderBox( 1 )];&amp;nbsp; &amp;nbsp; //Returns a reference to the actual Graph

gbb &amp;lt;&amp;lt; removeVariable( 1 );&amp;nbsp; &amp;nbsp; //This is a case of lucky guess - not sure why this removes the moving average chart, but it does.

gbb &amp;lt;&amp;lt; addVariable( {:Month, Role( "Subgroup" )} );&amp;nbsp; //Adds the month to the "X Axis" of the control chart.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps anyone in the future!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 19:04:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Editing-Control-Chart-after-Creation/m-p/222060#M44313</guid>
      <dc:creator>DavidLeber</dc:creator>
      <dc:date>2019-08-16T19:04:43Z</dc:date>
    </item>
  </channel>
</rss>

