<?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 add a connection between the first point and the last point in this diagram? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881864#M104598</link>
    <description>&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(Transform Column("Row", Formula(Row()))), Y(:weight)),
	Elements(Points(X, Y, Legend(6))),
	SendToReport(
		Dispatch({}, "400", ScaleBox,
			{Legend Model(6, Properties(0, {Marker Size(2)}, Item ID("weight", 1)))}
		)
	)
);


fb = Report(gb)[FrameBox(1)];
ms = fb &amp;lt;&amp;lt; Find Seg(MarkerSeg(1));
xs = ms &amp;lt;&amp;lt; Get X Values;
ys = ms &amp;lt;&amp;lt; Get Y Values;

fb &amp;lt;&amp;lt; Add Graphics Script(
	Line({xs[1], ys[1]}, {xs[N Items(xs)], ys[N Items(ys)]})
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Jun 2025 13:19:56 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-06-26T13:19:56Z</dc:date>
    <item>
      <title>How to add a connection between the first point and the last point in this diagram?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881858#M104593</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
Graph Builder(
	Variables( X( Transform Column( "Row", Formula( Row() ) ) ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 6 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				6,
				Properties( 0, {Marker Size( 2 )}, Item ID( "weight", 1 ) )
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-06-26_20-40-30.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77422i885EDCCC5649F9E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-06-26_20-40-30.png" alt="2025-06-26_20-40-30.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 12:44:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881858#M104593</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-26T12:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a connection between the first point and the last point in this diagram?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881864#M104598</link>
      <description>&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(Transform Column("Row", Formula(Row()))), Y(:weight)),
	Elements(Points(X, Y, Legend(6))),
	SendToReport(
		Dispatch({}, "400", ScaleBox,
			{Legend Model(6, Properties(0, {Marker Size(2)}, Item ID("weight", 1)))}
		)
	)
);


fb = Report(gb)[FrameBox(1)];
ms = fb &amp;lt;&amp;lt; Find Seg(MarkerSeg(1));
xs = ms &amp;lt;&amp;lt; Get X Values;
ys = ms &amp;lt;&amp;lt; Get Y Values;

fb &amp;lt;&amp;lt; Add Graphics Script(
	Line({xs[1], ys[1]}, {xs[N Items(xs)], ys[N Items(ys)]})
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jun 2025 13:19:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881864#M104598</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-06-26T13:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a connection between the first point and the last point in this diagram?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881961#M104605</link>
      <description>&lt;P&gt;Via right Click you can add a Transform Column to Graph Builder&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1750974170314.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77448i55A14C090A85262E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1750974170314.png" alt="hogi_3-1750974170314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Use it to keep the first and last data point.&lt;BR /&gt;Then use the Line Plot to connect the 2 points.&lt;BR /&gt;&lt;BR /&gt;if you don't want to see the lines between the original data points,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1750974019508.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77445i4B01F50F96355E30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1750974019508.png" alt="hogi_0-1750974019508.png" /&gt;&lt;/span&gt;&lt;BR /&gt;you can disable them:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1750974047249.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77446i67EED4E694D59FB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1750974047249.png" alt="hogi_1-1750974047249.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final graph:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1750974067785.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77447i97AD15A4F091F172/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1750974067785.png" alt="hogi_2-1750974067785.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
Graph Builder(
	Transform Column(
		"Transform[weight]",
		Formula( If( Row() == 1 | Row() == N Rows(), :weight ) )
	),
	Transform Column( "Row", Formula( Row() ) ),

	Variables( X( :Row ), Y( :weight ), Y( :"Transform[weight]"n, Position( 1 ) ) ),
	Elements( Points( X, Y( 1 ), Y( 2 ), Legend( 6 ) ), Line( X, Y( 2 ) ) )
);&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 21:44:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881961#M104605</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-06-26T21:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a connection between the first point and the last point in this diagram?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881962#M104606</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");
Graph Builder(
	Transform Column(
		"Transform[weight]",
		Formula( If( Row() == 1 | Row() == N Rows(), :weight ) )
	),
	Transform Column( "Row", Formula( Row() ) ),
	Size( 570, 698 ),
	Variables( X( :Row ), Y( :weight ), Y( :"Transform[weight]"n, Position( 1 ) ) ),
	Elements(
		Points( X, Y( 1 ), Y( 2 ), Legend( 1 ) ),
		Smoother( X, Y( 2 ), Legend( 5 ) )
	),
	SendToReport( Dispatch( {"Smoother"}, "", OutlineBox, {Close( 0 )} ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 22:51:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881962#M104606</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-26T22:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a connection between the first point and the last point in this diagram?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881979#M104607</link>
      <description>&lt;P&gt;Yes, with two points, instead of &lt;FONT face="courier new,courier"&gt;Line&lt;/FONT&gt;, one can also use &lt;FONT face="courier new,courier"&gt;Smoother&lt;/FONT&gt; to connect the points.&lt;BR /&gt;The trick is again to use a &lt;FONT face="courier new,courier"&gt;Transform Column&lt;/FONT&gt; to dynamically generate the additional information (first an last point?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Transform Column + checkmarks in the Variables menu: I love it!&lt;BR /&gt;&lt;BR /&gt;Here, the line is a standard plot "&lt;FONT face="courier new,courier"&gt;element" and&amp;nbsp;&lt;/FONT&gt;shows up in the legend.&lt;BR /&gt;This is why I prefer to use &lt;FONT face="courier new,courier"&gt;Transform Columns&lt;/FONT&gt; compared to other approaches / workarounds.&lt;/P&gt;
&lt;P&gt;With the interactive capabilities of Graph builder, for colleagues without the knowledge about the &lt;EM&gt;plumbing&lt;/EM&gt; layer in the background, it just behaves like any other plot element:&lt;/P&gt;
&lt;P&gt;It can be selected and it's settings can be adjusted via the legend menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, it doesn't behave EXACTLY like any other plot element.&lt;BR /&gt;Just add a Column switch - and it will behave "strange" / "surprisingly" for users who don't know the details on the plumbing layer.&lt;BR /&gt;If the user switches to "height" - the Transform Column will NOT:&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Column Switcher + Transform Columns" uid="738432" url="https://community.jmp.com/t5/JMP-Wish-List/Column-Switcher-Transform-Columns/m-p/738432#U738432" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;is a wish that addresses this interplay between column switcher and Transform Columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;For this special case here, one can fix the issue easily - by generating a &lt;FONT face="courier new,courier"&gt;Transform Column&lt;/FONT&gt; for the X values instead of the Y values.&lt;BR /&gt;In general, it takes some effort (e.g. a column switch handler an an additional table variable: &lt;LI-MESSAGE title="Colour Plots by Pass and Fail" uid="881231" url="https://community.jmp.com/t5/Discussions/Colour-Plots-by-Pass-and-Fail/m-p/881231#U881231" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;) to fix the interplay between Column Switcher and Transform Columns in the current version of JMP.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other extreme, &lt;EM&gt;for users with access / knowledge to the plumbing layer&lt;/EM&gt;, there are other restrictions:&lt;BR /&gt;With some tiny&lt;LI-MESSAGE title="improvements for Transform Column" uid="684044" url="https://community.jmp.com/t5/JMP-Wish-List/improvements-for-Transform-Column/m-p/684044#U684044" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;the framework could made much more powerful!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 04:38:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-a-connection-between-the-first-point-and-the-last/m-p/881979#M104607</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-06-27T04:38:11Z</dc:date>
    </item>
  </channel>
</rss>

