<?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: Draw Line Across SCATTER SGPLOTs from (X,YAXIS) to (X,Y2AXIS)  by Subject in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Draw-Line-Across-SCATTER-SGPLOTs-from-X-YAXIS-to-X-Y2AXIS-by/m-p/581875#M13758</link>
    <description>&lt;P&gt;One option is to do some math to figure out the equation of your line and use a LINEPARM statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n1h6n82pw2uqo6n10avwmph63r7o.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n1h6n82pw2uqo6n10avwmph63r7o.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or add it in as second set of data in new variables and use a SERIES statement with GROUP to get the dots connected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's probably the easiest way. If you can provide raw data used to generate that graph and your current code someone can help with the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are instructions on how to provide sample data as a data step:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/285508"&gt;@jamie2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Using SAS 9.4, I employ SGPLOT to produce two SCATTERs on the same output: one plotting subject values on &lt;STRONG&gt;&lt;SPAN style="color: #2f5597;"&gt;YAXIS (blue)&lt;/SPAN&gt;&lt;/STRONG&gt;, the other plotting the same set of subjects values on &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Y2AXIS (red).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I want to draw a &lt;STRONG&gt;&lt;SPAN style="color: #7030a0;"&gt;line (purple)&lt;/SPAN&gt;&lt;/STRONG&gt; from a particular subject’s values on one box to their value on the other box.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can you point me in the right direction?&lt;/STRONG&gt; &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Pun intended.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I imagine that I need to transform the Y2 values so that they map to Y1 values and then draw lines using SGANNO as if the Y2 axis does not exist....&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 22:08:03 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-08-16T22:08:03Z</dc:date>
    <item>
      <title>Draw Line Across SCATTER SGPLOTs from (X,YAXIS) to (X,Y2AXIS)  by Subject</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Draw-Line-Across-SCATTER-SGPLOTs-from-X-YAXIS-to-X-Y2AXIS-by/m-p/581870#M13757</link>
      <description>&lt;P&gt;Using SAS 9.4, I employ SGPLOT to produce two SCATTERs on the same output: one plotting subject values on &lt;STRONG&gt;&lt;SPAN style="color: #2f5597;"&gt;YAXIS (blue)&lt;/SPAN&gt;&lt;/STRONG&gt;, the other plotting the same set of subjects values on &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Y2AXIS (red).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I want to draw a &lt;STRONG&gt;&lt;SPAN style="color: #7030a0;"&gt;line (purple)&lt;/SPAN&gt;&lt;/STRONG&gt; from a particular subject’s values on one box to their value on the other box.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can you point me in the right direction?&lt;/STRONG&gt; &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Pun intended.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I imagine that I need to transform the Y2 values so that they map to Y1 values and then draw lines using SGANNO as if the Y2 axis does not exist....&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 21:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Draw-Line-Across-SCATTER-SGPLOTs-from-X-YAXIS-to-X-Y2AXIS-by/m-p/581870#M13757</guid>
      <dc:creator>jamie2</dc:creator>
      <dc:date>2019-08-16T21:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Line Across SCATTER SGPLOTs from (X,YAXIS) to (X,Y2AXIS)  by Subject</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Draw-Line-Across-SCATTER-SGPLOTs-from-X-YAXIS-to-X-Y2AXIS-by/m-p/581875#M13758</link>
      <description>&lt;P&gt;One option is to do some math to figure out the equation of your line and use a LINEPARM statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n1h6n82pw2uqo6n10avwmph63r7o.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n1h6n82pw2uqo6n10avwmph63r7o.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or add it in as second set of data in new variables and use a SERIES statement with GROUP to get the dots connected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's probably the easiest way. If you can provide raw data used to generate that graph and your current code someone can help with the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are instructions on how to provide sample data as a data step:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/285508"&gt;@jamie2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Using SAS 9.4, I employ SGPLOT to produce two SCATTERs on the same output: one plotting subject values on &lt;STRONG&gt;&lt;SPAN style="color: #2f5597;"&gt;YAXIS (blue)&lt;/SPAN&gt;&lt;/STRONG&gt;, the other plotting the same set of subjects values on &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Y2AXIS (red).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I want to draw a &lt;STRONG&gt;&lt;SPAN style="color: #7030a0;"&gt;line (purple)&lt;/SPAN&gt;&lt;/STRONG&gt; from a particular subject’s values on one box to their value on the other box.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can you point me in the right direction?&lt;/STRONG&gt; &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Pun intended.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I imagine that I need to transform the Y2 values so that they map to Y1 values and then draw lines using SGANNO as if the Y2 axis does not exist....&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 22:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Draw-Line-Across-SCATTER-SGPLOTs-from-X-YAXIS-to-X-Y2AXIS-by/m-p/581875#M13758</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-16T22:08:03Z</dc:date>
    </item>
  </channel>
</rss>

