<?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 can i reference line change? no numeric in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236434#M46661</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the script below, all STD values in Group F are written as Group M STD values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can we separate them into two groups?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ;


gb = Graph Builder(
	Size( 1056, 825 ),
	Variables( Y( :height ), Y( :weight ), Group Y( :sex ) ),
	Elements(
		Position( 1, 1 ),
		Points( Y, Legend( 7 ) ),
		Caption Box( Y, Legend( 13 ), Summary Statistic( "Std Dev" ) )
	),
	Elements(
		Position( 1, 2 ),
		Points( Y, Legend( 8 ) ),
		Caption Box( Y, Legend( 14 ), Summary Statistic( "Std Dev" ) )
	)
);

Report( gb )[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "F", :Height, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);

Report( gb )[AxisBox( 3 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "F", :Height, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);
Report( gb )[AxisBox( 4 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "M", :Height, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);
Report( gb )[AxisBox( 5 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "M", :Weight, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Nov 2019 08:28:30 GMT</pubDate>
    <dc:creator>Song</dc:creator>
    <dc:date>2019-11-26T08:28:30Z</dc:date>
    <item>
      <title>How can i reference line change? no numeric</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/233888#M46368</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;I want to put the Std mean of the two data into the reference line as shown in the graph below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The JMP script below has I arbitrarily written the Std mean, 13.2 (22.2+4.2)/2 = 13.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually the data I use is more than two. (Below image is just example)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can i script change?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ;


Graph Builder(
	Size( 1056, 825 ),
	Variables( Y( :height ), Y( :weight ) ),
	Elements(
		Position( 1, 1 ),
		Points( Y, Legend( 7 ) ),
		Caption Box( Y, Legend( 13 ), Summary Statistic( "Std Dev" ) )
	),
	Elements(
		Position( 1, 2 ),
		Points( Y, Legend( 8 ) ),
		Caption Box( Y, Legend( 14 ), Summary Statistic( "Std Dev" ) )
	),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Add Ref Line( 13.3, "Solid", "Medium Dark Red", "Std Dev mean", 2 )}
		),
		Dispatch(
			{},
			"weight",
			ScaleBox,
			{Add Ref Line( 13.3, "Solid", "Medium Dark Red", "Std Dev mean", 2 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20319i75AC3D188F01F36F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 03:30:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/233888#M46368</guid>
      <dc:creator>Song</dc:creator>
      <dc:date>2019-11-15T03:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can i reference line change? no numeric</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/233898#M46369</link>
      <description>&lt;P&gt;Here is a simple modification to your script that draws a reference line at the value of the Std Dev for each column(:Height,:Weight)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ;


gb=Graph Builder(
	Size( 1056, 825 ),
	Variables( Y( :height ), Y( :weight ) ),
	Elements(
		Position( 1, 1 ),
		Points( Y, Legend( 7 ) ),
		Caption Box( Y, Legend( 13 ), Summary Statistic( "Std Dev" ) )
	),
	Elements(
		Position( 1, 2 ),
		Points( Y, Legend( 8 ) ),
		Caption Box( Y, Legend( 14 ), Summary Statistic( "Std Dev" ) )
	)
	);
report(gb)[AxisBox(2)]&amp;lt;&amp;lt;Add Ref Line( col std dev(:Height), "Solid", "Medium Dark Red", "Std Dev mean",2  );	
report(gb)[AxisBox(3)]&amp;lt;&amp;lt;Add Ref Line( col std dev(:Weight), "Solid", "Medium Dark Red", "Std Dev mean", 2 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 04:18:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/233898#M46369</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-11-15T04:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can i reference line change? no numeric</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/233900#M46370</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="pack_group"&gt;&lt;DIV class="main_pack"&gt;&lt;DIV class="content_search section"&gt;&lt;DIV class="contents03"&gt;&lt;DIV class="contents03_sub"&gt;&lt;DIV class="cs_translator"&gt;&lt;DIV class="tlans_box"&gt;&lt;DIV class="txt_box rt _output on"&gt;&lt;DIV class="txt_area _view"&gt;&lt;P class="trans_txt _textview"&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;Thank you for your prompt reply!&lt;/P&gt;&lt;P class="trans_txt _textview"&gt;I have one more question.&lt;/P&gt;&lt;P class="trans_txt _textview"&gt;If data was grouped by sex like below image how can i handle it?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20320i84D1A94C868DEE86/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Nov 2019 06:26:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/233900#M46370</guid>
      <dc:creator>Song</dc:creator>
      <dc:date>2019-11-15T06:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can i reference line change? no numeric</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/233923#M46376</link>
      <description>&lt;P&gt;As can be seen in my previous response, to Add a Reference Line, all you have to do, is to pass an &amp;lt;&amp;lt; Add Ref Line message to the Axis that you want to add the reference line to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report( gb )[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line( Col Std Dev( :Height ), "Solid", "Medium Dark Red", "Std Dev mean", 2 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To find out which Axis to properly point to, one needs to look into the Tree Structure of the output from the Graph Builder.&amp;nbsp; To do this, you right click on the grey triangle next to the Graph Builder Heading and select&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Edit==&amp;gt;Show Tree Structure&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tree1.PNG" style="width: 658px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20323iC9D9FAD2684C822C/image-size/large?v=v2&amp;amp;px=999" role="button" title="tree1.PNG" alt="tree1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tree2.PNG" style="width: 662px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20325i0A0FD1C5D707643D/image-size/large?v=v2&amp;amp;px=999" role="button" title="tree2.PNG" alt="tree2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you can align the Graph Window with the Tree Structure Window, and click on the item in the Graph Window that you want to see the Tree Structure for, and JMP will move to that structure in the Tree Structure Window&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tree3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20324i0E8FB789330F9AA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="tree3.PNG" alt="tree3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As can be seen here, the Axis for the Height column, for Sex=="F" is AxisBox(2)&lt;/P&gt;
&lt;P&gt;If you click on each of the Axes in question you will see what Axis Box to point to to Add a Ref Line to.&amp;nbsp; The last axis of question, column Weight, for Sex=="M" is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tree4.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20326i142D14FB81E07698/image-size/large?v=v2&amp;amp;px=999" role="button" title="tree4.PNG" alt="tree4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now all that needs to be done is to expand on the JSL to create the Reference Lines for all 4 axes and to calculate in each of the Add Ref Line messages, the correct value for the placement of the Reference Line.&amp;nbsp; Here are the 4 Add Ref Line lines of code:&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report( gb )[AxisBox( 3 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "F", :Weight, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);
Report( gb )[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "M", :Height, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);
Report( gb )[AxisBox( 3 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "M", :Weight, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that in this case, that the Sex column had to be taken into account for the calculation of the Standard Deviation, along with the measurement column.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 11:23:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/233923#M46376</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-11-15T11:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can i reference line change? no numeric</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236434#M46661</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the script below, all STD values in Group F are written as Group M STD values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can we separate them into two groups?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ;


gb = Graph Builder(
	Size( 1056, 825 ),
	Variables( Y( :height ), Y( :weight ), Group Y( :sex ) ),
	Elements(
		Position( 1, 1 ),
		Points( Y, Legend( 7 ) ),
		Caption Box( Y, Legend( 13 ), Summary Statistic( "Std Dev" ) )
	),
	Elements(
		Position( 1, 2 ),
		Points( Y, Legend( 8 ) ),
		Caption Box( Y, Legend( 14 ), Summary Statistic( "Std Dev" ) )
	)
);

Report( gb )[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "F", :Height, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);

Report( gb )[AxisBox( 3 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "F", :Height, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);
Report( gb )[AxisBox( 4 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "M", :Height, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);
Report( gb )[AxisBox( 5 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( If( :sex == "M", :Weight, . ) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 08:28:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236434#M46661</guid>
      <dc:creator>Song</dc:creator>
      <dc:date>2019-11-26T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can i reference line change? no numeric</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236461#M46665</link>
      <description>&lt;P&gt;I see the issue you are pointing out.&amp;nbsp; It appears that even though the Display Tree indicates there are 4 separate Axes, JMP&amp;nbsp; actually treats them as just 2 axes.&amp;nbsp; Therefore, what has to be done to get as close to what you want as I think I can, one can take the data for Height and Weight into 4 columns,&amp;nbsp; based upon the Sex value, and then plot the 4 variables separately.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fourvars.PNG" style="width: 951px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20468i0A4397BF8C2B6ECF/image-size/large?v=v2&amp;amp;px=999" role="button" title="fourvars.PNG" alt="fourvars.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the JSL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ;

dtSplit = dt &amp;lt;&amp;lt; Split(
	Split By( :sex ),
	Split( :height, :weight ),
	Remaining Columns( Drop All ),
	Sort by Column Property
);

gb = dtSplit &amp;lt;&amp;lt; Graph Builder(
	Variables( Y( :height F ), Y( :weight F ), Y( :height M ), Y( :weight M ) ),
	Elements(
		Position( 1, 1 ),
		Points( Y, Legend( 11 ) ),
		Caption Box( Y, Legend( 15 ), Summary Statistic( "Std Dev" ) )
	),
	Elements(
		Position( 1, 2 ),
		Points( Y, Legend( 12 ) ),
		Caption Box( Y, Legend( 16 ), Summary Statistic( "Std Dev" ) )
	),
	Elements(
		Position( 1, 3 ),
		Caption Box( Y, Legend( 17 ), Summary Statistic( "Std Dev" ) ),
		Points( Y, Legend( 18 ) )
	),
	Elements(
		Position( 1, 4 ),
		Points( Y, Legend( 14 ) ),
		Caption Box( Y, Legend( 19 ), Summary Statistic( "Std Err" ) )
	),
	SendToReport(
		Dispatch(
			{},
			"weight F",
			ScaleBox,
			{Min( 49.5141101773061 ), Max( 150.319351489306 ), Inc( 20 ),
			Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				18,
				Properties( 0, {Line Color( 21 )}, Item ID( "height M", 1 ) )
			), Legend Model(
				14,
				Properties( 0, {Line Color( 19 )}, Item ID( "weight M", 1 ) )
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {11, [0], 12, [1], 18, [3], 14, [2]} ),
			Position( {0, 1, 3, 2} )}
		)
	)
);

Report( gb )[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( :Height F ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);

Report( gb )[AxisBox( 3 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( :Weight F),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);
Report( gb )[AxisBox( 4 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( :Height M ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);
Report( gb )[AxisBox( 5 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Std Dev( :Weight M ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 11:08:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236461#M46665</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-11-26T11:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can i reference line change? no numeric</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236643#M46700</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your kindly reply!&lt;/P&gt;&lt;P&gt;I have one more last! question.&lt;/P&gt;&lt;P&gt;sorry to bothering you..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to add the ref line Max, min (Mean + 4 * Std dev) in the all grouop(age).&lt;/P&gt;&lt;P&gt;problem is below script not work..&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ;



gb = Graph Builder(
	Size( 1056, 825 ),
	Variables( X( :height ), Group Y( :age ) ),
	Elements(
		Bar( X, Legend( 17 ) ),
		Caption Box( X, Legend( 15 ), Response Axis( "X" ) ),
		Caption Box(
			X,
			Legend( 16 ),
			Response Axis( "X" ),
			Summary Statistic( "Std Dev" )
		)
	)
);


Report( gb )[AxisBox( 1 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Mean( :height ) + 4*Col Std Dev( :height ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean",
	2
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the other problem, how can i extract Max, Min (Mean + 4 * Std dev) all the group(age).&lt;/P&gt;&lt;P&gt;I'd like to apply the ref line Max&amp;nbsp;(Mean + 4 * Std dev), Min&amp;nbsp;(Mean + 4 * Std dev) all group same.&lt;/P&gt;&lt;P&gt;I think i can use Max(), Min() function...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 03:05:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236643#M46700</guid>
      <dc:creator>Song</dc:creator>
      <dc:date>2019-11-27T03:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can i reference line change? no numeric</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236645#M46701</link>
      <description>&lt;P&gt;Here is the method that I use to capture the column stats for a given subgroup, such as Age, and you are using.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="colmin.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20477i3862F90FC3B5951B/image-size/large?v=v2&amp;amp;px=999" role="button" title="colmin.PNG" alt="colmin.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the script.&amp;nbsp; Just add the additional reference lines that you want using the same methodology&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ;



gb = Graph Builder(
	Size( 1056, 825 ),
	Variables( X( :height ), Group Y( :age ) ),
	Elements(
		Bar( X, Legend( 17 ) ),
		Caption Box( X, Legend( 15 ), Response Axis( "X" ) ),
		Caption Box(
			X,
			Legend( 16 ),
			Response Axis( "X" ),
			Summary Statistic( "Std Dev" )
		)
	)
);


Report( gb )[AxisBox( 1 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Mean( if(:age == 12,:height,.) ) + 4*Col Std Dev( If(:age==12,:height,) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean 12",
	2
);
Report( gb )[AxisBox( 1 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Min( if(:age == 12,:height,.) ),
	"Solid",
	"Medium Dark Red",
	"Min 12",
	2
);
Report( gb )[AxisBox( 1 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Max( if(:age == 12,:height,.) ),
	"Solid",
	"Medium Dark Red",
	"Max 12",
	2
);

Report( gb )[AxisBox( 1 )] &amp;lt;&amp;lt; Add Ref Line(
	Col Mean( if(:age == 13,:height,.) ) + 4*Col Std Dev( If(:age==13,:height,) ),
	"Solid",
	"Medium Dark Red",
	"Std Dev mean 13",
	2
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 03:20:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-i-reference-line-change-no-numeric/m-p/236645#M46701</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-11-27T03:20:54Z</dc:date>
    </item>
  </channel>
</rss>

