<?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: JMP SCRIPT: problem on the X scale with less than 10 values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617799#M81728</link>
    <description>&lt;P&gt;Are you asking about the large empty region at the right of the graph?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extra space at right end of X axis?" style="width: 927px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51572iA41317939955F989/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="extra space at right end of X axis?" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;extra space at right end of X axis?&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It does seem to have a scrolling behavior that might be trying to show about 10 as more rows are added to the table. If you don't get other answers here, try the tech support link at the bottom of the page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = 

New Table( "Imported Data", 
	New Column( "X", Character, "Nominal", Set Values( {"A", "B", "C", "D", "E"} ) ),
	New Column( "Y2", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [9, 9, 9, 9, 9] ) ),
	New Column( "Y", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [8, 7, 6, 5, 4] ) )
);
//New Table( "Imported Data", 
//	New Column( "X", Character, "Nominal", Set Values( {"A", "B", "C", "D", "E", "f", "g", "h", "i", "j", "k"} ) ),
//	New Column( "Y2", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9] ) ),
//	New Column( "Y", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [8, 7, 6, 5, 4, 8, 7, 6, 5, 4, 3] ) )
//);

dt &amp;lt;&amp;lt; Control Chart(
	Sample Label( :X ),
	Sample Size( :Y2 ),
	KSigma( 1 ),
	Sort by Row Order( 1 ),
	Chart Col( :"Y"n, P( Test Beyond Limits( 1 ), Limits Precision( 1 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 13:44:52 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2023-03-29T13:44:52Z</dc:date>
    <item>
      <title>JMP SCRIPT: problem on the X scale with less than 10 values</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617434#M81698</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am making a P' chart of Laney with JMP 16.2. (I know that this chart is available with the new JMP version, however I have not this new version).&lt;/P&gt;&lt;P&gt;I don't know why bur when I have less than 10 values, the X scale is not adapted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The X scale is set up for 10 values (whatever the number of values if it is lower than 10), and when I have more than 10 values the X scale is being adapted.&lt;/P&gt;&lt;P&gt;Here is my program&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;z_yyy = Eval( {:"Y"n} );
		z_xx = z_yyy[1] &amp;lt;&amp;lt; get values;
		z_nnn = Eval( {:Nombre de seringue transmise par le remplissage} );
		z_nn = z_nnn[1] &amp;lt;&amp;lt; get values;
		z_rrr = Eval( {:Numéro de lot} );

		z_Proportion = E Div( z_xx, z_nn );
		z_Pbar = V Sum( z_xx ) / V Sum( z_nn );
		z_sigma_est = Root( z_Pbar * (1 - z_Pbar) );
		z_zvalue = E Mult( ((z_Proportion - z_Pbar) / z_sigma_est), Root( z_nn ) );
		z_nr = N Row( z_zvalue );
		z_mRList = {0};
		z_m = z_zvalue;
		z_m[1, 0] = [];
		z_m = z_m |/ [0];
		z_mr = Abs( z_m - z_zvalue );
		z_nr = N Row( z_mr );
		z_mr[z_nr, 0] = [];
		z_SigmaZ = Mean( z_mr ) / 1.128;
		z_KSigmaZ = 3 * z_SigmaZ;
		
		
	Names Default To Here( 1 );
	Graph_expr=Expr(
		graph1 = Control Chart(
				Sample Label( :X ),
				Sample Size( :Y2 ),
				KSigma(TBD),
				Sort by Row Order( 1 ),
			Chart Col( :"Y"n, P( Test Beyond Limits( 1 ), Limits Precision( 1 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Y",
			OutlineBox,
			{Set Title( "Carte de controle P'" )}
		),
		Dispatch(
			{"Y"},
			"2",
			ScaleBox,
			{Format( "Fixed Dec", 12, 5 ), Min( -0.05 ), Max( 1.05 ), Inc( 0.1 ),
			Minor Ticks( 9 )}
		),
		Dispatch(
			{"Y"},
			"1",
			ScaleBox,
			{Min( 0.5 ), Inc( 1 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{"Y"},
			"",
			AxisBox,
			{Add Axis Label( "XX" )}
		)
		)));
	SubstituteInto(Graph_expr, Expr(TBD), z_KSigmaZ);
	Graph_expr;
			
		);		
	)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is anyone have a suggestion to help me?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:06:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617434#M81698</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-06-09T16:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: JMP SCRIPT: problem on the X scale with less than 10 values</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617529#M81703</link>
      <description>&lt;P&gt;Can you add a sample table and some instructions? And make sure the JSL is clean; the last two parens seem out-of-place.&lt;/P&gt;
&lt;P&gt;(I don't use control charts, but I might guess that the Y2 variable for sample size is somehow involved.)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 16:18:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617529#M81703</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-03-28T16:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: JMP SCRIPT: problem on the X scale with less than 10 values</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617705#M81725</link>
      <description>&lt;P&gt;Here is an example of the dataset:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;Y2&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;25218&lt;/TD&gt;&lt;TD&gt;24218&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;26000&lt;/TD&gt;&lt;TD&gt;24218&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;61534&lt;/TD&gt;&lt;TD&gt;56379&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;25218&lt;/TD&gt;&lt;TD&gt;24218&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;25218&lt;/TD&gt;&lt;TD&gt;24057&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I don't think it is a problem of dataset / Y2 variable / parens...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 09:50:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617705#M81725</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-03-29T09:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: JMP SCRIPT: problem on the X scale with less than 10 values</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617799#M81728</link>
      <description>&lt;P&gt;Are you asking about the large empty region at the right of the graph?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extra space at right end of X axis?" style="width: 927px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51572iA41317939955F989/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="extra space at right end of X axis?" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;extra space at right end of X axis?&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It does seem to have a scrolling behavior that might be trying to show about 10 as more rows are added to the table. If you don't get other answers here, try the tech support link at the bottom of the page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = 

New Table( "Imported Data", 
	New Column( "X", Character, "Nominal", Set Values( {"A", "B", "C", "D", "E"} ) ),
	New Column( "Y2", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [9, 9, 9, 9, 9] ) ),
	New Column( "Y", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [8, 7, 6, 5, 4] ) )
);
//New Table( "Imported Data", 
//	New Column( "X", Character, "Nominal", Set Values( {"A", "B", "C", "D", "E", "f", "g", "h", "i", "j", "k"} ) ),
//	New Column( "Y2", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9] ) ),
//	New Column( "Y", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [8, 7, 6, 5, 4, 8, 7, 6, 5, 4, 3] ) )
//);

dt &amp;lt;&amp;lt; Control Chart(
	Sample Label( :X ),
	Sample Size( :Y2 ),
	KSigma( 1 ),
	Sort by Row Order( 1 ),
	Chart Col( :"Y"n, P( Test Beyond Limits( 1 ), Limits Precision( 1 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 13:44:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/617799#M81728</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-03-29T13:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: JMP SCRIPT: problem on the X scale with less than 10 values</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/623431#M82224</link>
      <description>&lt;P&gt;I tried by creating another datatable but does not work as well...&lt;/P&gt;&lt;P&gt;I do not know why it happens.&lt;/P&gt;&lt;P&gt;Anyone has another suggestion?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:11:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-problem-on-the-X-scale-with-less-than-10-values/m-p/623431#M82224</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-04-18T13:11:31Z</dc:date>
    </item>
  </channel>
</rss>

