<?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 make a line graph containing multiple lines? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70393#M35210</link>
    <description>Yes! Thank you txnelson and gzmorgan0!!</description>
    <pubDate>Wed, 29 Aug 2018 00:21:22 GMT</pubDate>
    <dc:creator>alihong812</dc:creator>
    <dc:date>2018-08-29T00:21:22Z</dc:date>
    <item>
      <title>How to make a line graph containing multiple lines?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70247#M35182</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 50 people and each people have 5 values corresponding to 5 time points. I am trying to create a graph looks like this in JMP, showing everyone's 5 values on this graph:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-08-28 at 00.55.12.png" style="width: 517px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12192i8BD0F4E0D0FE689B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-28 at 00.55.12.png" alt="Screen Shot 2018-08-28 at 00.55.12.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;But instead, this is what I got in JMP:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-08-28 at 00.58.57.png" style="width: 500px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12193iEDE66635612A8592/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-28 at 00.58.57.png" alt="Screen Shot 2018-08-28 at 00.58.57.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;Is there any way I can connect the 5 values for each person and show this on the graph? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 05:01:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70247#M35182</guid>
      <dc:creator>alihong812</dc:creator>
      <dc:date>2018-08-28T05:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a line graph containing multiple lines?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70254#M35186</link>
      <description>&lt;P&gt;If you are using &lt;STRONG&gt;GraphBuilder&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;make your time variable Ordinal instead of Continuous if you want equally spaced time periods&lt;/LI&gt;&lt;LI&gt;make the person variable an Overlay variable&lt;/LI&gt;&lt;LI&gt;right click and change Smoother to Line&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is the JMP sample data SAT by Year.jmp with SAT Math for Y, Year (note ordinal)&amp;nbsp; for X and State as the Overlay&lt;BR /&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/12195i4529F578A9D671FB/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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using Fit Y by X:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use Response for Y&lt;/LI&gt;&lt;LI&gt;use Time for X (Continuous)&lt;/LI&gt;&lt;LI&gt;From the pull down menu, select Group By and select the variable for People&lt;/LI&gt;&lt;LI&gt;The use the pull down to select Fit Flexible &amp;gt; Fit each value&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12196i98DB22B5041BED75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 07:57:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70254#M35186</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-28T07:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a line graph containing multiple lines?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70390#M35207</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;However when I tried your method using the Graph Builder, this is what I achieved before changing Smoother to line:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-08-28 at 19.49.45.png" style="width: 592px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12212iC8E49BD48FE4042F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-28 at 19.49.45.png" alt="Screen Shot 2018-08-28 at 19.49.45.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is after: &lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-08-28 at 19.50.06.png" style="width: 968px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12213i9112199A43072F49/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-28 at 19.50.06.png" alt="Screen Shot 2018-08-28 at 19.50.06.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am stilling getting only 2 lines (one for women and the other for men), instead of 50 lines. Do you know where could I have done incorrectly?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 23:52:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70390#M35207</guid>
      <dc:creator>alihong812</dc:creator>
      <dc:date>2018-08-28T23:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a line graph containing multiple lines?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70392#M35209</link>
      <description>&lt;P&gt;Overlay by the ID column, not the gender column.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 00:16:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70392#M35209</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-29T00:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a line graph containing multiple lines?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70393#M35210</link>
      <description>Yes! Thank you txnelson and gzmorgan0!!</description>
      <pubDate>Wed, 29 Aug 2018 00:21:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70393#M35210</guid>
      <dc:creator>alihong812</dc:creator>
      <dc:date>2018-08-29T00:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a line graph containing multiple lines?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70395#M35211</link>
      <description>&lt;P&gt;Just a follow-up question: I am trying to separate women from men on this graph (which we intend to make only black and white) by assigning solid lines to women and dash lines to men. But apparently the "Color" on Graph Builder wouldn't let me do so, it only changes color. &lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-08-28 at 20.34.31.png" style="width: 641px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12214i9CFF68EDA99FE005/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-28 at 20.34.31.png" alt="Screen Shot 2018-08-28 at 20.34.31.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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 00:37:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70395#M35211</guid>
      <dc:creator>alihong812</dc:creator>
      <dc:date>2018-08-29T00:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a line graph containing multiple lines?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70398#M35214</link>
      <description>&lt;P&gt;I do not know of a single simple point and click method. But here are two options:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Brute Force&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Right click on the frame box and select Customize,&lt;/LI&gt;&lt;LI&gt;Then click on each female line and change the line style.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;JSL script&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = Open("$sample_data/SATByYear.jmp");

gbb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 514, 484 ),
	Show Control Panel( 0 ),
	Variables( X( :Year ), Y( :SAT Math ), Overlay( :State ) ),
	Elements( Line( X, Y, Legend( 10 ) ) )
);
regSum = dt &amp;lt;&amp;lt; summary( Group(:State, :Region));
_idx = regSum &amp;lt;&amp;lt; get rows where(:Region == "Midwest");

//get a handle to all all line segments
_xls = gbb &amp;lt;&amp;lt; Xpath("//LineSeg");


_xls[_idx] &amp;lt;&amp;lt; LineStyle("Dotted");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The first part draws the graph,&lt;/LI&gt;&lt;LI&gt;Summary will display the IDs ( state names) in the order they appear in graph builder.&amp;nbsp; For your data, the group columns would be ID and Gender.&lt;/LI&gt;&lt;LI&gt;Your script would be _idx = regSum &amp;lt;&amp;lt; get rows where( :Gender == "F");&lt;/LI&gt;&lt;LI&gt;The _xls = gbb &amp;lt;&amp;lt; Xpath() statement gets a reference to each lineseg in your graph. That is _xls has a handle to each line.&lt;/LI&gt;&lt;LI&gt;_xls[_idx] &amp;lt;&amp;lt; Linestyle () will change all the female lines to dashed.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize this script is using JSL and more advanced methods.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone has a simpler point and click method other than Brute Force.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 04:45:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-line-graph-containing-multiple-lines/m-p/70398#M35214</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-29T04:45:35Z</dc:date>
    </item>
  </channel>
</rss>

