<?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: HELP!? How to add sample size and % above USL and below LSL in graph builder? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51744#M29348</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11095"&gt;@jofu&lt;/a&gt;, it looks like your image didn't get attached properly.&lt;/P&gt;
&lt;P&gt;Be sure to use the &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SafariScreenSnapz386.png" style="width: 78px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9428i8075DD4788687202/image-size/large?v=v2&amp;amp;px=999" role="button" title="SafariScreenSnapz386.png" alt="SafariScreenSnapz386.png" /&gt;&lt;/span&gt;button in the toolbar in the editor to embed your image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2018 17:34:36 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2018-02-21T17:34:36Z</dc:date>
    <item>
      <title>HELP!? How to add sample size and % above USL and below LSL in graph builder?</title>
      <link>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51741#M29347</link>
      <description>&lt;P&gt;I have plotted 2 data sets in graph builder that looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-21 at 9.57.31 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9432i3323009F7C3250F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-02-21 at 9.57.31 AM.png" alt="Screen Shot 2018-02-21 at 9.57.31 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The USL and LSL were automatically placed via the spec limits I set in the column properties and adding refrences lines to graph. I then additionally added a Marginal USL (MUSL) manually in graph builder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To this graph, I would like to add a label or note with the count/sample size for each data set as well as the % of points above USL, above MUSL and below LSL. I would like this "label" to be automatically updated everytime i change the data. How can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 18:03:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51741#M29347</guid>
      <dc:creator>jofu</dc:creator>
      <dc:date>2018-02-21T18:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: HELP!? How to add sample size and % above USL and below LSL in graph builder?</title>
      <link>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51744#M29348</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11095"&gt;@jofu&lt;/a&gt;, it looks like your image didn't get attached properly.&lt;/P&gt;
&lt;P&gt;Be sure to use the &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SafariScreenSnapz386.png" style="width: 78px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9428i8075DD4788687202/image-size/large?v=v2&amp;amp;px=999" role="button" title="SafariScreenSnapz386.png" alt="SafariScreenSnapz386.png" /&gt;&lt;/span&gt;button in the toolbar in the editor to embed your image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 17:34:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51744#M29348</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-02-21T17:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: HELP!? How to add sample size and % above USL and below LSL in graph builder?</title>
      <link>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51747#M29349</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-21 at 9.57.31 AM.png" style="width: 563px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9430i944D5ACA863450BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-21 at 9.57.31 AM.png" alt="Screen Shot 2018-02-21 at 9.57.31 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 17:58:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51747#M29349</guid>
      <dc:creator>jofu</dc:creator>
      <dc:date>2018-02-21T17:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: HELP!? How to add sample size and % above USL and below LSL in graph builder?</title>
      <link>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51750#M29351</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11095"&gt;@jofu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Welcome to the community!&lt;/P&gt;&lt;P&gt;The embedded image in your post is not showing, so I'm flying a little blind here. I'm guessing you can probably do what you want using Add Text Annotation. Here's an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$Sample_Data/Big Class.jmp");

USL = 68;
LSL = 55;
MUSL = 67;

SampleSize = N Row(dt &amp;lt;&amp;lt; Get Rows Where(:Sex == "M"));
AboveUSL = Round(100*N Row(dt &amp;lt;&amp;lt; Get Rows Where(:Sex == "M" &amp;amp; :height &amp;gt; USL))/SampleSize,2);
BelowLSL = Round(100*N Row(dt &amp;lt;&amp;lt; Get Rows Where(:Sex == "M" &amp;amp; :height &amp;lt; LSL))/SampleSize,2);
AboveMUSL = Round(100*N Row(dt &amp;lt;&amp;lt; Get Rows Where(:Sex == "M" &amp;amp; :height &amp;gt; MUSL))/SampleSize,2);

text_str = Eval Insert(
"Male Data
Sample Size: ^SampleSize^
Above USL: ^Above USL^%
Above MUSL: ^AboveMUSL^%
Below USL: ^BelowLSL^%"
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 518, 452 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :sex ) ),
	Elements( Histogram( X, Y, Legend( 6 ) ) ),
) &amp;lt;&amp;lt; Report;

gb &amp;lt;&amp;lt; Add Text Annotation(
	Text(text_str),
	Text Box( {80, 60, 127, 281} )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And here's what that looks like:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Annotate.PNG" style="width: 613px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9431iF62E743526778052/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotate.PNG" alt="Annotate.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll have to play with coordinates for the text box a bit.&amp;nbsp; I only worked with the first 2 to get the annotation approximately where I wanted.&amp;nbsp; You could do this in some kind of loop.&amp;nbsp; My concern with this approach is that the placement of the annotation is not very robust.&amp;nbsp; It would be nice if you could pin it to a corner of plot or something.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 18:00:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51750#M29351</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-02-21T18:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: HELP!? How to add sample size and % above USL and below LSL in graph builder?</title>
      <link>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51760#M29356</link>
      <description>&lt;P&gt;You can "Add Graphics Script" to the graph, where you can perform your calculations and display the results in most any format you desire.&amp;nbsp; Here is a sample&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
dt:height &amp;lt;&amp;lt; set property(
	"spec limits",
	{LSL( 55 ), USL( 65 ), Show Limits( 1 )}
);
gb = Graph Builder(
	Size( 534, 448 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Add Ref Line( 58, "Solid", "Black", "MUSL", 1 )}
		)
	)
);
Report( gb )[FrameBox( 1 )] &amp;lt;&amp;lt; Add Graphics Script(
	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Feb 2018 18:23:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/HELP-How-to-add-sample-size-and-above-USL-and-below-LSL-in-graph/m-p/51760#M29356</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-21T18:23:26Z</dc:date>
    </item>
  </channel>
</rss>

