<?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: proc sgscatter drawing lines in multiple graphs in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193258#M7136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data linedata;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function="line";&lt;/P&gt;&lt;P&gt;&amp;nbsp; drawspace="graphpercent";&lt;/P&gt;&lt;P&gt;&amp;nbsp; x1=0; y1=0; x2=100; y2=100;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; linethickness=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the above dataset with the sganno option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this creates a 45 degree line across the entire page, not the individual plots.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 16:52:16 GMT</pubDate>
    <dc:creator>hjoe21</dc:creator>
    <dc:date>2015-04-10T16:52:16Z</dc:date>
    <item>
      <title>proc sgscatter drawing lines in multiple graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193254#M7132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a user new to sas as well as this forum. I am trying to create scatterplots in sas using PROC SGSCATTER to generate scatterplots (of groups male and female) of variable X against variables Y1, Y3, Y4, and Y5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing gpath='C:\';&lt;/P&gt;&lt;P&gt;ods graphics / reset height=4.5in width=8.925in imagefmt=png imagename="img1";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgscatter data=test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; plot Y1*X&amp;nbsp; Y3*X Y4*X Y5*X /group=gender rows=2 columns=3 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above produces an image file with 3 plots in the first row and 1 plot in the second row. However, I am having difficulty in drawing a straight line passing through the origin in each of the 4 plots.Is there any way I can extend this code so that a straight line passing through the origin appears in each of my plots? I tried using the sganno option that included a 'line' function, but it does nto seem to help. I would appreciate any useful input.&amp;nbsp; Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how my image looks:&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11684i31379D89B6DA7EF3/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="img1.png" title="img1.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193254#M7132</guid>
      <dc:creator>hjoe21</dc:creator>
      <dc:date>2015-04-10T15:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgscatter drawing lines in multiple graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193255#M7133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding the option:&lt;/P&gt;&lt;P&gt;pbspline=(degree=1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193255#M7133</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-10T15:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgscatter drawing lines in multiple graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193256#M7134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. I am getting this warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: X=PBSPLINE_X_Y5_GROUP_SORT_G__X is invalid. The option expects at least one non-missing value in the column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this results in each plot with 2 different line for each gender group. I was just trying to insert a single line that that connects the points, say, (0,0) to (100,100) in each of the plots. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:53:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193256#M7134</guid>
      <dc:creator>hjoe21</dc:creator>
      <dc:date>2015-04-10T15:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgscatter drawing lines in multiple graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193257#M7135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What did your annotate set look like when you tried the SGANNO approach?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193257#M7135</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-10T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgscatter drawing lines in multiple graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193258#M7136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data linedata;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function="line";&lt;/P&gt;&lt;P&gt;&amp;nbsp; drawspace="graphpercent";&lt;/P&gt;&lt;P&gt;&amp;nbsp; x1=0; y1=0; x2=100; y2=100;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; linethickness=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the above dataset with the sganno option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this creates a 45 degree line across the entire page, not the individual plots.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgscatter-drawing-lines-in-multiple-graphs/m-p/193258#M7136</guid>
      <dc:creator>hjoe21</dc:creator>
      <dc:date>2015-04-10T16:52:16Z</dc:date>
    </item>
  </channel>
</rss>

