<?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 have different reference line by groups in variability charts? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-have-different-reference-line-by-groups-in-variability/m-p/341523#M59031</link>
    <description>&lt;P&gt;Thanks! That's indeed what I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another question though. Can I use another table as a reference for the group names instead of drawing the lines based on x-axis points?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, another table will contain&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sex | Upper Limits | Lower Limits&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; |&amp;nbsp; 2&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; |&lt;/P&gt;&lt;P&gt;F&amp;nbsp; &amp;nbsp; &amp;nbsp;| 4&amp;nbsp; &amp;nbsp;|&amp;nbsp; 5&amp;nbsp; |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and a script to use that table to create the reference lines. Is that possible?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2020 09:48:22 GMT</pubDate>
    <dc:creator>alvin</dc:creator>
    <dc:date>2020-12-14T09:48:22Z</dc:date>
    <item>
      <title>How to have different reference line by groups in variability charts?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-have-different-reference-line-by-groups-in-variability/m-p/340981#M58938</link>
      <description>&lt;P&gt;I am trying to add different reference lines based on groups in a variability chart, but there seem to be no straight forward way to do it.&lt;/P&gt;&lt;P&gt;I have different targets based on the groups and a column has the target data already in there.&lt;/P&gt;&lt;P&gt;How to make use of the available target column data and draw reference lines based on the different groups?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:08:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-have-different-reference-line-by-groups-in-variability/m-p/340981#M58938</guid>
      <dc:creator>alvin</dc:creator>
      <dc:date>2023-06-11T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to have different reference line by groups in variability charts?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-have-different-reference-line-by-groups-in-variability/m-p/341001#M58939</link>
      <description>&lt;P&gt;Is this the kind of plot you are after?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-12-11 at 10.04.56.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28850i9106BF7C3E69E49C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2020-12-11 at 10.04.56.png" alt="Screenshot 2020-12-11 at 10.04.56.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If so, for the Variability Chart you will need to use a graphics script. You can make the plot above by running this script:&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 &amp;lt;&amp;lt; Variability Chart(
			Y( :height ),
			X( :sex ),
			Std Dev Chart( 0 ),
			SendToReport(
				Dispatch(
					{"Variability Chart for height"},
					"Variability Chart",
					FrameBox,
					{Add Graphics Script(
						2,
						Description( "" ),
						Pen Color( "Red" );
						// Females
						H Line( 0, 1, 55 );
						H Line( 0, 1, 65 );
						// Males
						H Line( 1, 2, 52 );
						H Line( 1, 2, 67 );
					)}
					)
				)
			);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To add horizontal lines by hand, do a right click on the white area of the graph and select 'Customize...'. Then hit the '+' sign to add them using 'HLine()' with the values you need:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-12-11 at 10.40.51.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28851i6F6ABBBAAEFCC309/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2020-12-11 at 10.40.51.png" alt="Screenshot 2020-12-11 at 10.40.51.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can add such lines as part of a bigger JSL script, and if you need to do this often you may want to look into this.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 10:43:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-have-different-reference-line-by-groups-in-variability/m-p/341001#M58939</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2020-12-11T10:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to have different reference line by groups in variability charts?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-have-different-reference-line-by-groups-in-variability/m-p/341523#M59031</link>
      <description>&lt;P&gt;Thanks! That's indeed what I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another question though. Can I use another table as a reference for the group names instead of drawing the lines based on x-axis points?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, another table will contain&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sex | Upper Limits | Lower Limits&lt;/P&gt;&lt;P&gt;M&amp;nbsp; &amp;nbsp; |&amp;nbsp; 2&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; |&lt;/P&gt;&lt;P&gt;F&amp;nbsp; &amp;nbsp; &amp;nbsp;| 4&amp;nbsp; &amp;nbsp;|&amp;nbsp; 5&amp;nbsp; |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and a script to use that table to create the reference lines. Is that possible?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 09:48:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-have-different-reference-line-by-groups-in-variability/m-p/341523#M59031</guid>
      <dc:creator>alvin</dc:creator>
      <dc:date>2020-12-14T09:48:22Z</dc:date>
    </item>
  </channel>
</rss>

