<?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 label to the graph's reference line based on a variable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221781#M44257</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;SV is refering to a value over here. It depends on the loop. For instance, during the first loop, SV will be equivalent to the value of 1.81, i.e. SV = 1.81. During the second loop, SV will be equivalent to the value of -9.11, i.e. SV = -9.11, and subsequently for respective loop. Is there any way to indicate inside the "..." that I am referring to the SV value and not just the words of SV inside "..."?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2019 01:43:20 GMT</pubDate>
    <dc:creator>reallyneedhelp</dc:creator>
    <dc:date>2019-08-15T01:43:20Z</dc:date>
    <item>
      <title>Adding a label to the graph's reference line based on a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221644#M44232</link>
      <description>&lt;P&gt;Hi everyone, basically I have a portion of a whole list of codes which writes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Oneway(
	Y( y ),
	X( :column( x ) ),
	Plot Actual by Quantile( 1 ),
	Line of Fit( 0 ),
	Points Jittered( 1 ),
	SendToReport(
		Dispatch(
			{},
			"1",
			ScaleBox,
			{Add Ref Line( {pinkMin, SV}, "Solid", "Light Red", "", 1, 0.25 ),
			Add Ref Line( SV, "Solid", "Medium Light Red", "", 1 )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works perfectly fine when plotting graphs. However, when I tried to do something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Oneway(
	Y( y ),
	X( :column( x ) ),
	Plot Actual by Quantile( 1 ),
	Line of Fit( 0 ),
	Points Jittered( 1 ),
	SendToReport(
		Dispatch(
			{},
			"1",
			ScaleBox,
			{Add Ref Line( {pinkMin, SV}, "Solid", "Light Red", "", 1, 0.25 ),
			Add Ref Line( SV, "Solid", "Medium Light Red", SV, 1 )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No label is out. SV and pinkMin are my variables. Is there any way in which I'm able to add a label to the reference line based on a variable? I have also tried Eval (SV), to which no result is out, and "SV", to which SV is my label instead of the value of SV.&amp;nbsp; Any comment will be appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:09:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221644#M44232</guid>
      <dc:creator>reallyneedhelp</dc:creator>
      <dc:date>2019-08-14T14:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a label to the graph's reference line based on a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221733#M44251</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15105"&gt;@reallyneedhelp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; What exactly does SV refer to in your script? Is SV a list of text, e.g. {"text 1". "text 2",...}, or is it a column name, or is it a list of numbers? This might help to figure out what exactly is going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, you might try replacing the SV with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expr(SV[1]) where the [1] refers to the first element of whatever SV is, if it's a list of text or numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then, around your entire script, you need to wrap it in an&amp;nbsp;Eval(Eval Expr(your scirpt goes here)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 19:31:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221733#M44251</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-08-14T19:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a label to the graph's reference line based on a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221781#M44257</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;SV is refering to a value over here. It depends on the loop. For instance, during the first loop, SV will be equivalent to the value of 1.81, i.e. SV = 1.81. During the second loop, SV will be equivalent to the value of -9.11, i.e. SV = -9.11, and subsequently for respective loop. Is there any way to indicate inside the "..." that I am referring to the SV value and not just the words of SV inside "..."?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 01:43:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221781#M44257</guid>
      <dc:creator>reallyneedhelp</dc:creator>
      <dc:date>2019-08-15T01:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a label to the graph's reference line based on a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221792#M44259</link>
      <description>&lt;P&gt;Hi all. I have found the answer! Simply put Char(SV) in place of "...". Thank all of you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 04:40:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-label-to-the-graph-s-reference-line-based-on-a-variable/m-p/221792#M44259</guid>
      <dc:creator>reallyneedhelp</dc:creator>
      <dc:date>2019-08-15T04:40:24Z</dc:date>
    </item>
  </channel>
</rss>

