<?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 Plotting multiple short lines using only points and slopes in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/579657#M78689</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to use a dataset of X,Y and slope values to and plot these on a single graph? Ideally it should also do this by group.&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;P&gt;Group. X.&amp;nbsp; Y.&amp;nbsp; Slope&lt;/P&gt;&lt;P&gt;A.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.&amp;nbsp; 1.&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;A.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.&amp;nbsp; 2.&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;B.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.&amp;nbsp; 3.&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The graph will show each of these points, with a slope around it, and the line should be half the distance to the previous and next point in the dataset.&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:29:59 GMT</pubDate>
    <dc:creator>Lavik17</dc:creator>
    <dc:date>2023-06-11T11:29:59Z</dc:date>
    <item>
      <title>Plotting multiple short lines using only points and slopes</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/579657#M78689</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to use a dataset of X,Y and slope values to and plot these on a single graph? Ideally it should also do this by group.&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;P&gt;Group. X.&amp;nbsp; Y.&amp;nbsp; Slope&lt;/P&gt;&lt;P&gt;A.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.&amp;nbsp; 1.&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;A.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.&amp;nbsp; 2.&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;B.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.&amp;nbsp; 3.&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The graph will show each of these points, with a slope around it, and the line should be half the distance to the previous and next point in the dataset.&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:29:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/579657#M78689</guid>
      <dc:creator>Lavik17</dc:creator>
      <dc:date>2023-06-11T11:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting multiple short lines using only points and slopes</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/579720#M78698</link>
      <description>&lt;P&gt;A Graph Box() Display Object can handle this.&amp;nbsp; A script will have to be written to draw the lines, but it wouldn't be a difficult piece of code.&lt;/P&gt;
&lt;P&gt;Take a look at the Graph Box() documentation in the Scripting Guide.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 02:22:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/579720#M78698</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-12-10T02:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting multiple short lines using only points and slopes</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/580312#M78742</link>
      <description>&lt;P&gt;I did something like that where I wanted the g-force vector plotted for every location along a race track.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the lines, I added a customize script to the graph like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Pen Size( 1 );
For Each Row(
	Line(
		{:NGPSLongitude, :NGPSLatitude},
		{:NGPSLongitude + :gLong / 2000, :NGPSLatitude + :gLat / 2000}
	)
);&lt;/CODE&gt;&lt;/PRE&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="Screen Shot 2022-12-12 at 11.27.16 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48198i19B309EA59D0F39E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-12-12 at 11.27.16 AM.png" alt="Screen Shot 2022-12-12 at 11.27.16 AM.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;I've attached the data file below. The first script (bubble plot 3) has the figure above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:28:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/580312#M78742</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2022-12-12T16:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting multiple short lines using only points and slopes</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/580723#M78763</link>
      <description>&lt;P&gt;Except for me not understanding what you mean by the lines being " half the distance...", another way to do this would be to create 2 new formula columns to find one more X and Y point, then do some table stacking and splitting to create graphs for each group, basically just fitting a line to each of the (now) 2 data points. I've attached a workflow (for which you need JMP 17) to demonstrate this. If you need the script, let me know, and I'll send it along. Output below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_2-1670881678949.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48238i8A7880EFF60515A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_2-1670881678949.png" alt="Jed_Campbell_2-1670881678949.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 21:50:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-multiple-short-lines-using-only-points-and-slopes/m-p/580723#M78763</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2022-12-12T21:50:37Z</dc:date>
    </item>
  </channel>
</rss>

