<?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: Adding a Value to End of Trend Line in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/287354#M55470</link>
    <description>&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me play around and figure out. Haven't attended JMP course yet due to Covid-19.&lt;/P&gt;&lt;P&gt;By platform, what do you mean? I'm using version 15.1&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 08:46:07 GMT</pubDate>
    <dc:creator>Sage</dc:creator>
    <dc:date>2020-08-24T08:46:07Z</dc:date>
    <item>
      <title>Adding a Value to End of Trend Line</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/286908#M55375</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sage_0-1597910618429.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26306i440869F4A6815973/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sage_0-1597910618429.png" alt="Sage_0-1597910618429.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a set marker at 1800 RFh and my trend line shows that at the end of this reporting period, I have cross and passed the mark.&lt;/P&gt;&lt;P&gt;However, how can I add a value at the end of the trend line to show the calculated value by JMP? Assuming Lamda is default.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:05:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/286908#M55375</guid>
      <dc:creator>Sage</dc:creator>
      <dc:date>2023-06-11T11:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Value to End of Trend Line</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/287083#M55409</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/20100"&gt;@Sage&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot detect which platform you are using.&amp;nbsp; Here is as script that adds the last value of a smoother from the GraphBuilder platform.&amp;nbsp; The key here is to save the smoother values to the data table, you can delete that new smoother values column later. It takes a few steps to find the last value, extend the x-axis and add the text.&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 = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);

//get row where max X
xmax = Col Max( :height );
idx = (dt &amp;lt;&amp;lt; get rows where( :height == xmax ))[1];
gbb = Report( gb )[Graph Builder Box( 1 )];
Wait( 0.5 );&lt;BR /&gt;&lt;BR /&gt;//smoother is the second element, save to the data table
gbb &amp;lt;&amp;lt; Update Element( 1, 1, 2, {Save Formula} );

//smoother is in the last col

lastVal = Round( Column( dt, N Col( dt ) )[idx], 2 );

// here is the tricky part, if you want to annotate this to teh right of xmax you need to extend the x axis
gb_x = gbb[GraphBuilderAxisBox( 1 )];

xaxis_inc = gb_x &amp;lt;&amp;lt; get inc;
xaxis_max = gb_x &amp;lt;&amp;lt; get max;

//add a half inc ?? arbitrary

gb_x &amp;lt;&amp;lt; Max( xaxis_max + 0.5 * xaxis_inc );

Eval(
	Eval Expr(
		gbb[FrameBox( 1 )] &amp;lt;&amp;lt; Add Graphics Script(
			Text Font( "Arial", 10, "Bold" );
			Text Color( "Red" );
			Text( {Expr( xmax + 0.1 * xaxis_inc ), Expr( lastVal )}, Expr( Char( lastVal ) ) );
		)
	)
);&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/26326iA2663B0CAC7B269E/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, 21 Aug 2020 08:45:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/287083#M55409</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-08-21T08:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Value to End of Trend Line</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/287354#M55470</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me play around and figure out. Haven't attended JMP course yet due to Covid-19.&lt;/P&gt;&lt;P&gt;By platform, what do you mean? I'm using version 15.1&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 08:46:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/287354#M55470</guid>
      <dc:creator>Sage</dc:creator>
      <dc:date>2020-08-24T08:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Value to End of Trend Line</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/287787#M55484</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/20100"&gt;@Sage&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP platforms are the options found under analysis and graphs. For example Fit Y by X with both continuous Y and X is called Bivariate; continuous Y and nominal X is called Oneway, or as documented in my post GraphBuilder.&amp;nbsp; Your graph looked like a trend or time series. So I was stating I could not determine how you created the graph in your original post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The JMP messgages (commands) to save the values or formula of the smoothed curve can be different for diifferent platforms.&amp;nbsp; If you save the script (inverted red triangle option) for your graph to the script window and post it, then a script that would work for your graph could be provided.&amp;nbsp; &amp;nbsp;Don't forget to change names or values that might contain proprietary information before posting.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 16:24:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-Value-to-End-of-Trend-Line/m-p/287787#M55484</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-08-24T16:24:36Z</dc:date>
    </item>
  </channel>
</rss>

