<?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 Reference line in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2354#M2354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what "Verlauf ETA A6" is for kind of Object. If it's a name of the graph bulider object it should work, however if it's the name of the data table it does not work. I think it is easier to assign a variable to the Graph builder window (as above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, it should work. I changed my script to retrieve the reflines from a separate table using your syntax and it worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also think that you may need to make sure that the right table is the "current data table".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 19:12:02 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2011-08-17T19:12:02Z</dc:date>
    <item>
      <title>Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2348#M2348</link>
      <description>Dear community,&lt;BR /&gt;&lt;BR /&gt;Is there any script that I can use to add different reference line to a multiple distribution chart. I have 4000 histograms &amp;amp; each one of them have different reference value. &lt;BR /&gt;&lt;BR /&gt;Your help is really appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 31 Aug 2010 04:51:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2348#M2348</guid>
      <dc:creator>statganda</dc:creator>
      <dc:date>2010-08-31T04:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2349#M2349</link>
      <description>&lt;P&gt;Here is a sample script, assuming all histograms are within the same window. The individual ref lines are here simply the group mean, but the script can easily be adapted to a custom matrix or list of values, e.g. retrieved from a table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Open datatable and make report
dt = Open( "$SAMPLE_DATA/Michelson.jmp" );

Biv = dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution( Column( :Velocity ) ),
	By( :Trial# )
);
rbiv = Biv &amp;lt;&amp;lt; Report();

// Here is created a list of all by-groups and a matrix with 
//means of each group to be used as a refline.
//A custom list can be used instead using the same approach 
Summarize(
	groups = by( :Trial# ),
	reflines = Mean( :Velocity )
); 
n = N Items( groups );

//Add reference lines
For( j = 1, j &amp;lt;= n, j++,
	rbiv[j][1][1][1][1][1][1][1][1] &amp;lt;&amp;lt;
	add ref line( reflines[j], solid, "Red" )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Oct 2017 20:11:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2349#M2349</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2017-10-04T20:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2350#M2350</link>
      <description>Hi MS,&lt;BR /&gt;&lt;BR /&gt;Thanks. It works. &lt;BR /&gt;&lt;BR /&gt;More power to you</description>
      <pubDate>Sun, 05 Sep 2010 21:24:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2350#M2350</guid>
      <dc:creator>statganda</dc:creator>
      <dc:date>2010-09-05T21:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2351#M2351</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got a similar problem, I have a graph and on the x-axis there is a date (like d.m.y), and I want several vertical ref lines on the a-axis. To day i used a script with v-line, but there I got the line, but no label on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The dates for the ref lines and the label are stored in a data table (column date (format d.m.y), column label). But the manual refline uses instead of the date a number like: 33962554400 (and I know this is a date...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder( Size( 696, 688 ), Show Control Panel( 0 ), Variables( X( :BL, Size( 212 ) ), Y( :Name( "x" ) ), Group Y( :Name( "s_-x" ) ), Overlay( :Projektklasse_plus ) ), Elements( Points( X, Y, Legend( 6 ) ) ), SendToReport( Dispatch( {}, "BL-date", ScaleBox, {Format( "d.m.y", 10 ), Interval( "Day" ), Inc( 1 ), Add Ref Line( 3396254400, Solid, {255, 0, 0}, "Label ref line 1" ) , Rotated Labels( 1 )} ), Dispatch(.......
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my vline script was like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;OPR[FrameBox(1)] &amp;lt;&amp;lt; add graphics script (pen color("purple"); vline(column(data Table ("CHCharge$"),"CuI") &amp;lt;&amp;lt; get values));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but actually i want really different ref lines with a label, on different dates and the data table with the dates for the ref lines is getting more and more dates in it throughout the year...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So can you please clarify your answer, how to use a data table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 20:13:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2351#M2351</guid>
      <dc:creator>anneg</dc:creator>
      <dc:date>2017-10-04T20:13:34Z</dc:date>
    </item>
    <item>
      <title>Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2352#M2352</link>
      <description>&lt;P&gt;The strange number is JMPs internal representation of a datetime value (actually the nr of seconds since a reference date I keep forgetting...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VLine() seems not to have an optional label argument. But you can populate the graph with vertical lines using Add ref line() in a for loop. Use Summarize() to get lists and matrices of the labels and dates from the data table. See example script below.&lt;/P&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #499011;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Make example table
dt=New Table( "Test",
          Add Rows( 6 ),
          New Column( "Group",Nominal, Character, Set Values(
                              {"Group A", "Group A", "Group A", "Group B", "Group B", "Group B"})),
  New Column( "Data", Numeric,
                    Set Values( [1, 2, 3, 2, 3, 4] )),
  New Column( "Date", Numeric,
                    Format( "d-m-y", 12 ),
                    Set Values([3166214400, 3166300800, 3166387200, 3166214400, 3166300800, 3166387200])),
          New Column( "Label",Nominal,Character,
                    Set Values( {"A", "B", "C", "A", "B", "C"} )));
 
// Make list of dates and labels
Summarize(dlist=by(:Date),dlist=mean(:Date));
Summarize(llist=by(:Label));
 
// Make graph
gb=Graph Builder(
          Variables( X( :Date ), Y( :Data ), Overlay( :Group ) ),
          Elements( Points( X, Y, Legend( 1 ) ) ));
 
//Add vertical reflines based on dates in Column date
for(i=1,i&amp;lt;=nrows(dlist),i++,
report(gb)[Axis Box(1)] &amp;lt;&amp;lt; add ref line (dlist[i],Solid, "Purple", llist[i] ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 20:14:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2352#M2352</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2017-10-04T20:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2353#M2353</link>
      <description>&lt;P&gt;It helped, but I still got an error,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got 2 different tables, one table I use for the graph, in the secon there are the dates (report "Verlauf Eta A6") and labels for ref lines (data table "")- I&amp;nbsp; changed allready the format to the jmp long date number:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for(i=1,i&amp;lt;=nrows(data Table ("Ereignisse")),i++, report("Verlauf ETA A6")[Axis Box(1)] &amp;lt;&amp;lt; add ref line (column(data Table ("Ereignisse"),"Datum"),Solid, "Purple", column(data Table ("Ereignisse"),"Bezeichnung") ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;but the Log returns the following (not very helpful)&lt;/P&gt;
&lt;PRE&gt;In the following script, error marked by /*###*/ For( ::i = 1, ::i &amp;lt;= N Rows( Data Table( "Ereignisse" ) ), ::i++, Report( "Verlauf ETA A6" )[Axis Box( 1 )] &amp;lt;&amp;lt;  /*###*/ add ref line( Column( Data Table( "Ereignisse" ), "Datum" )[::i], Solid, "Purple", Column( Data Table( "Ereignisse" ), "Bezeichnung" )[::i] ) /*###*/ )&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Oct 2017 20:15:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2353#M2353</guid>
      <dc:creator>anneg</dc:creator>
      <dc:date>2017-10-04T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2354#M2354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what "Verlauf ETA A6" is for kind of Object. If it's a name of the graph bulider object it should work, however if it's the name of the data table it does not work. I think it is easier to assign a variable to the Graph builder window (as above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, it should work. I changed my script to retrieve the reflines from a separate table using your syntax and it worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also think that you may need to make sure that the right table is the "current data table".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 19:12:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2354#M2354</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2011-08-17T19:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2355#M2355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar problem. I have a proc gplot that is plotting 35 different charts for different id's using a by statement. Is there a way I can specify different horizontal reference line in each plot? And, is it also possible to display the value of that reference line either on top or bottom of the line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 21:46:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/2355#M2355</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2012-05-17T21:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/49888#M28369</link>
      <description>&lt;P&gt;What does the following line of code do or mean?&amp;nbsp; How do I know how many [1]s are required?&amp;nbsp; The reason I ask is I want to be able to add ref line using variables in the ref line function properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;rbiv&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;j&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 17:22:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/49888#M28369</guid>
      <dc:creator>-JMP-</dc:creator>
      <dc:date>2018-01-20T17:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/49889#M28370</link>
      <description>&lt;P&gt;All platform displays have a&amp;nbsp;tree structure behind them, which allows JSL to point to any particular object and to pass messages to the object.&amp;nbsp; If you go to any of the gray triangles in in an output display, and right click on it, and select "Show Tree Structure", you will see the objects.&amp;nbsp; You can reference them by selecting the offset to each object.&amp;nbsp; The&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl lia-code-sample" data-lia-code-lang="jsl" data-lia-code-macro="true"&gt;&lt;CODE class="  language-jsl"&gt;rbiv&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;j&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is an offset pointing to an AxisBox() in the display.&amp;nbsp; This coding is very cryptic.&amp;nbsp; I think if you examine the following code, you will see that what it is doing, is going through each of the 5 histogram ouputs, and finding the first axis box() in each of those displays, and passing the message to Add Reference Line.&amp;nbsp; It is the same as the cryptic notation, but in a form that branches by name to the object to be modified.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Open datatable and make report
dt = Open( "$SAMPLE_DATA/Michelson.jmp" );

Biv = dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution( Column( :Velocity ) ),
	By( :Trial# )
);
rbiv = Biv &amp;lt;&amp;lt; Report();

// Here is created a list of all by-groups and a matrix with 
//means of each group to be used as a refline.
//A custom list can be used instead using the same approach 
Summarize(
	groups = by( :Trial# ),
	reflines = Mean( :Velocity )
); 
n = N Items( groups );

//Add reference lines
For( j = 1, j &amp;lt;= n, j++,
	//rbiv[j][1][1][1][1][1][1][1][1] &amp;lt;&amp;lt;
	rbiv[j][AxisBox(1)]&amp;lt;&amp;lt;
	add ref line( reflines[j], solid, "Red" )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR data-mce-bogus="1" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 22:24:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/49889#M28370</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-20T22:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-line/m-p/49892#M28373</link>
      <description>&lt;P&gt;Thanks for the quick response.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 22:16:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-line/m-p/49892#M28373</guid>
      <dc:creator>-JMP-</dc:creator>
      <dc:date>2018-01-20T22:16:38Z</dc:date>
    </item>
  </channel>
</rss>

