<?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 JSL - Adding a horizontal line (from a variable) to a plot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-horizontal-line-from-a-variable-to-a-plot/m-p/30916#M19611</link>
    <description>&lt;P&gt;I am trying to add a horizonal line to a plot that I have made where the hieght of the line is a variable in the JSL (based on statitical calucations. &amp;nbsp;So for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;test_here = temp &amp;lt;&amp;lt; Graph Builder(
    Size( 534, 448),
    Show Control Panel(0),
    Variables( X( :Panels), Y( :Score), Color (:Code)),
    Elements( Points(X,Y,Legend(24), Jitter(0)))
);
// Want to add the line Y = upper_bound &amp;lt;- Just a number calculated prior to this &lt;/PRE&gt;&lt;P&gt;I am sure this is another easy thing to do that I will add to my knowledge base soon.... Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 20:34:04 GMT</pubDate>
    <dc:creator>drblove</dc:creator>
    <dc:date>2016-11-30T20:34:04Z</dc:date>
    <item>
      <title>JSL - Adding a horizontal line (from a variable) to a plot</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-horizontal-line-from-a-variable-to-a-plot/m-p/30916#M19611</link>
      <description>&lt;P&gt;I am trying to add a horizonal line to a plot that I have made where the hieght of the line is a variable in the JSL (based on statitical calucations. &amp;nbsp;So for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;test_here = temp &amp;lt;&amp;lt; Graph Builder(
    Size( 534, 448),
    Show Control Panel(0),
    Variables( X( :Panels), Y( :Score), Color (:Code)),
    Elements( Points(X,Y,Legend(24), Jitter(0)))
);
// Want to add the line Y = upper_bound &amp;lt;- Just a number calculated prior to this &lt;/PRE&gt;&lt;P&gt;I am sure this is another easy thing to do that I will add to my knowledge base soon.... Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 20:34:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-horizontal-line-from-a-variable-to-a-plot/m-p/30916#M19611</guid>
      <dc:creator>drblove</dc:creator>
      <dc:date>2016-11-30T20:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a horizontal line (from a variable) to a plot</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-horizontal-line-from-a-variable-to-a-plot/m-p/30919#M19614</link>
      <description>&lt;P&gt;Here is a script that does what you want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
test_here = Graph Builder(
	Variables( X( :Column 6 ), Y( :height ), Color( :sex ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {3, [0, -1]} ), Position( {0, -1} )}
		)
	)
);
upper_bound=70;
report(test_here)[axisbox(2)] &amp;lt;&amp;lt; Add Ref Line( upper_bound, "solid", black, "", 2 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2016 21:31:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-horizontal-line-from-a-variable-to-a-plot/m-p/30919#M19614</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-11-30T21:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a horizontal line (from a variable) to a plot</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-horizontal-line-from-a-variable-to-a-plot/m-p/30920#M19615</link>
      <description>&lt;P&gt;Thanks Jim this did the trick!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 22:12:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-horizontal-line-from-a-variable-to-a-plot/m-p/30920#M19615</guid>
      <dc:creator>drblove</dc:creator>
      <dc:date>2016-11-30T22:12:19Z</dc:date>
    </item>
  </channel>
</rss>

