<?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 can I import reference lines from a column to the X-axis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-import-reference-lines-from-a-column-to-the-X-axis/m-p/78336#M36383</link>
    <description>&lt;P&gt;Here is a simple illustration of one way to do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );

// Create reference line data table for the illustration
dtLines = New Table( "Lines",
	New Column( "HeightRefs", values( [52, 60, 66] ) ),
	New Column( "Labels", character, values( {"Age 10", "Age 14", "Age 18"} ) )
);

// Create the chart
Biv = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ) );

// Add the lines
For( i = 1, i &amp;lt;= N Rows( dtLines ), i++,
	Report( Biv )[AxisBox( 2 )] &amp;lt;&amp;lt; add ref line( dtLines:HeightRefs[i], dtLines:Labels[i] )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Oct 2018 13:20:46 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-10-08T13:20:46Z</dc:date>
    <item>
      <title>How can I import reference lines from a column to the X-axis</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-import-reference-lines-from-a-column-to-the-X-axis/m-p/78326#M36376</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large data set with a common time axis. I want to add a column with events that occurred, to display these events as a vertical reference line (on the X-axis). How can I do this? If I now make one graph, I need to manually copy all X-axis reference lines to another graph, I want an automated option to do this.&lt;/P&gt;&lt;P&gt;The events will add extra information regarding the trends observed and will help in the discussion when I show these trends to my team. The table below represents (simplified ofc.) my data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date &amp;amp; Time&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;P2&lt;/TD&gt;&lt;TD&gt;P3&lt;/TD&gt;&lt;TD&gt;Events&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;27/09/2018 6:00&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;0.5&lt;/TD&gt;&lt;TD&gt;pump failure&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;27/09/2018 14:00&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;TD&gt;0.2&lt;/TD&gt;&lt;TD&gt;(empty)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;27/09/2018 22:00&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;0.4&lt;/TD&gt;&lt;TD&gt;raw material shortage&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 11:58:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-import-reference-lines-from-a-column-to-the-X-axis/m-p/78326#M36376</guid>
      <dc:creator>BART_VDB</dc:creator>
      <dc:date>2018-10-08T11:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I import reference lines from a column to the X-axis</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-import-reference-lines-from-a-column-to-the-X-axis/m-p/78336#M36383</link>
      <description>&lt;P&gt;Here is a simple illustration of one way to do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );

// Create reference line data table for the illustration
dtLines = New Table( "Lines",
	New Column( "HeightRefs", values( [52, 60, 66] ) ),
	New Column( "Labels", character, values( {"Age 10", "Age 14", "Age 18"} ) )
);

// Create the chart
Biv = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ) );

// Add the lines
For( i = 1, i &amp;lt;= N Rows( dtLines ), i++,
	Report( Biv )[AxisBox( 2 )] &amp;lt;&amp;lt; add ref line( dtLines:HeightRefs[i], dtLines:Labels[i] )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Oct 2018 13:20:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-import-reference-lines-from-a-column-to-the-X-axis/m-p/78336#M36383</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-08T13:20:46Z</dc:date>
    </item>
  </channel>
</rss>

