<?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: Changing GPLOT to SGPLOT? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251739#M9113</link>
    <description>&lt;P&gt;You will find this website very useful if learning SGPLOT and GTL:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are thousands of examples of code for most graph types. &amp;nbsp;Also, please don't code all in upcase, it makes it very hard to read. &amp;nbsp;Use consistent casing, indentations etc. (note you can use the {i} symbol above the post to put code in as this keeps formatting), for example:&lt;/P&gt;
&lt;PRE&gt;proc gplot data=lead;
  plot iq*miles = first2y / vaxis=axis1 haxis=axis2 legend=legend1;
  symbol1 i=rl value=circle color=black line=3 width=2;
  symbol2 i=rl value=dot color=black line=1 width=2;
  axis1 label = (font=arial height=2.5 angle=90 position=center) value= (font=arial height=2;
  axis2 label = (font=arial height=2.5 position=center) value= (font=arial height=2;
  legend1 frame label=(font=arial height= 1.5) value=(font=arial height=1.5) position=(bottom inside right) across=1;
  format first2y yes1no2.;
run;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Feb 2016 09:43:17 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-02-23T09:43:17Z</dc:date>
    <item>
      <title>Changing GPLOT to SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251696#M9107</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to get acquainted with SAS Studio even as I need for my course. I have code for gplot, but none of my instructors know how to use SAS studio either??? Here is the necessary code can anyone help with translating this regression scatter plot to studio speak!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GPLOT DATA=lead;&lt;BR /&gt;PLOT iq*miles = first2y / VAXIS=axis1 HAXIS=axis2 LEGEND=legend1;&lt;BR /&gt;SYMBOL1 I=rl VALUE=circle COLOR=black LINE=3 WIDTH=2;&lt;BR /&gt;SYMBOL2 I=rl VALUE=dot COLOR=black LINE=1 WIDTH=2;&lt;BR /&gt;AXIS1 LABEL = (FONT=ARIAL HEIGHT=2.5 ANGLE=90 POSITION=center)&lt;BR /&gt;VALUE= (FONT=ARIAL HEIGHT=2;&lt;BR /&gt;AXIS2 LABEL = (FONT=ARIAL HEIGHT=2.5 POSITION=center)&lt;BR /&gt;VALUE= (FONT=ARIAL HEIGHT=2;&lt;BR /&gt;LEGEND1 FRAME LABEL=(FONT=ARIAL HEIGHT= 1.5) VALUE=(FONT=ARIAL HEIGHT=1.5)&lt;BR /&gt;POSITION=(bottom inside right) ACROSS=1;&lt;BR /&gt;FORMAT first2y yes1no2.;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 02:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251696#M9107</guid>
      <dc:creator>DCMarks</dc:creator>
      <dc:date>2016-02-23T02:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing GPLOT to SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251699#M9108</link>
      <description>&lt;P&gt;I'm assuming SAS UE, otherwise the following may not apply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the Snippets for graphs or the Tasks for graphs. If your graph fits one of those criteria you can use the point and click interface to generate your plot. The code is then available for you to customize. The options tab is there for further customization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1996iE0629737984182E9/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="DELETE - Graph Tasks.png" title="DELETE - Graph Tasks.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 02:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251699#M9108</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-23T02:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing GPLOT to SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251702#M9109</link>
      <description>&lt;P&gt;Yes, I found these choices too, but with all the information presented in the multple regression coupled with the fact that I am just learning that too makes feel like I would not place all the information in the correct places.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 02:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251702#M9109</guid>
      <dc:creator>DCMarks</dc:creator>
      <dc:date>2016-02-23T02:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing GPLOT to SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251706#M9111</link>
      <description>&lt;P&gt;There's really only 1 line to copy/recode, the rest is styling and formatting it to look the way you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PLOT iq*miles = first2y / VAXIS=axis1 HAXIS=axis2 LEGEND=legend1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which is in the format&lt;/P&gt;
&lt;P&gt;y*x=group&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So&lt;/P&gt;
&lt;P&gt;x=miles&lt;/P&gt;
&lt;P&gt;y=iq&lt;/P&gt;
&lt;P&gt;Group=first2y&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=lead;
scatter x=miles y=iq/group=first2y;
format first2y yes1no2.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 03:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251706#M9111</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-23T03:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing GPLOT to SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251739#M9113</link>
      <description>&lt;P&gt;You will find this website very useful if learning SGPLOT and GTL:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are thousands of examples of code for most graph types. &amp;nbsp;Also, please don't code all in upcase, it makes it very hard to read. &amp;nbsp;Use consistent casing, indentations etc. (note you can use the {i} symbol above the post to put code in as this keeps formatting), for example:&lt;/P&gt;
&lt;PRE&gt;proc gplot data=lead;
  plot iq*miles = first2y / vaxis=axis1 haxis=axis2 legend=legend1;
  symbol1 i=rl value=circle color=black line=3 width=2;
  symbol2 i=rl value=dot color=black line=1 width=2;
  axis1 label = (font=arial height=2.5 angle=90 position=center) value= (font=arial height=2;
  axis2 label = (font=arial height=2.5 position=center) value= (font=arial height=2;
  legend1 frame label=(font=arial height= 1.5) value=(font=arial height=1.5) position=(bottom inside right) across=1;
  format first2y yes1no2.;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 09:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/251739#M9113</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-23T09:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing GPLOT to SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/252292#M9126</link>
      <description>Thank you for your help a have been plying with it and found that the scatter plot option gave me what I needed with less confusing options that the regression option&lt;BR /&gt;Problem solved for now thank you!&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Feb 2016 05:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/252292#M9126</guid>
      <dc:creator>DCMarks</dc:creator>
      <dc:date>2016-02-25T05:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing GPLOT to SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/252294#M9127</link>
      <description>&lt;P&gt;Since your original request was for a regression fit, it requires only a small change to the code given by Reeza:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sgplot&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;lead&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
reg x&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;miles y&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;iq&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;first2y&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt; first2y yes1no2&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Feb 2016 05:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-GPLOT-to-SGPLOT/m-p/252294#M9127</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-02-25T05:28:59Z</dc:date>
    </item>
  </channel>
</rss>

