<?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 to make the  sgplot  code workable? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318324#M11159</link>
    <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it wont work. Another question, based on the code above, do you know how to make the graph generated by sgplot smaller? Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 17:00:41 GMT</pubDate>
    <dc:creator>zhangda</dc:creator>
    <dc:date>2016-12-12T17:00:41Z</dc:date>
    <item>
      <title>How to make the  sgplot  code workable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318281#M11152</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the code below, &amp;nbsp;I &amp;nbsp;have a couple of questions unsolved. Would you please help me? Thank you so much!&lt;/P&gt;&lt;P&gt;1. How can I put the vertical axis the percentage data ranging from 0% to 100% instead of '0% to 80%'?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. I added reftick option as the code below,&lt;/SPAN&gt;&amp;nbsp;but why there is no '0% ,20%, 40%, 60%, 80%', just a naked parallel vertical axis.&lt;/P&gt;&lt;P&gt;3. &lt;SPAN&gt;&amp;nbsp;I also added a label beside it as ' Second rate',&lt;/SPAN&gt;&amp;nbsp;as the axis on the left side shows , but why &amp;nbsp;the&amp;nbsp;&lt;SPAN&gt;' Second rate' does not show off ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. &amp;nbsp;I remove the noautolegend option, but why I can only have two small blocks showing 2 colors, for which I am supposed to have four blocks showing 4 colors instead,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. Apart from color reminder, can I add a piece of block and a piece of line also, to remind readers that what color and what shape represents what color?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6. How can I move the legend showing 4 colors and 4 shapes down and put it ahead of 'd_2015','d_2015','d_2015_2', 'd_2016_2' respectively so that the readers can figure out what color adn what shape represents what data at first sight.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ds1;&lt;BR /&gt;input year $ mid $ resp1 resp2;&lt;BR /&gt;mid2=cat(strip(mid), "_2");&lt;BR /&gt;datalines;&lt;BR /&gt;null d_2016 0.45 0.64&lt;BR /&gt;null d_2015 0.35 0.783&lt;BR /&gt;s_300 d_2016 0.65 0.67&lt;BR /&gt;s_300 d_2015 0.55 0.75&lt;BR /&gt;s_640 d_2016 0.42 0.89&lt;BR /&gt;s_640 d_2015 0.65 0.87&lt;BR /&gt;s_670 d_2016 0.35 0.12&lt;BR /&gt;s_670 d_2015 0.75 0.09&lt;BR /&gt;s_700 d_2016 0.83 0.06&lt;BR /&gt;s_700 d_2015 0.47 0.07&lt;BR /&gt;s_730 d_2016 0.48 0.18&lt;BR /&gt;s_730 d_2015 0.58 0.21&lt;BR /&gt;s_760 d_2016 0.67 0.05&lt;BR /&gt;s_760 d_2015 0.69 0.045&lt;BR /&gt;; run;&lt;/P&gt;&lt;P&gt;data attrmap;&lt;BR /&gt;length value FillColor LineColor TextColor $12;&lt;BR /&gt;Id='X'; Value="d_2015"; FillStyleElement='graphdata1'; LineStyleElement='graphdata1'; TextStyleElement='graphdata1';output;&lt;BR /&gt;Id='X'; Value="d_2016"; FillStyleElement='graphdata2'; LineStyleElement='graphdata2'; TextStyleElement='graphdata2';output;&lt;BR /&gt;Id='X'; Value="d_2015_2"; FillStyleElement='graphdata3'; LineStyleElement='graphdata3'; TextStyleElement='graphdata3';output;&lt;BR /&gt;Id='X'; Value="d_2016_2"; FillStyleElement='graphdata4'; LineStyleElement='graphdata4'; TextStyleElement='graphdata4';output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods listing gpath='.' image_dpi=200;&lt;BR /&gt;ods graphics / reset attrpriority=color width=5in height=3in imagename='Goodgraph';&lt;BR /&gt;title 'Score Distribution';&lt;BR /&gt;proc sgplot data=ds1 noborder cycleattrs dattrmap=attrmap;&lt;BR /&gt;vbarparm category=year response=resp1 / group=mid groupdisplay=cluster&lt;BR /&gt;outlineattrs=(color=black) barwidth=0.8 attrid=X;&lt;BR /&gt;series x=year y=resp2 / group=mid2 smoothconnect attrid=X&lt;BR /&gt;lineattrs=(thickness=3);&lt;BR /&gt;xaxistable resp1 / class=mid colorgroup=mid attrid=X;&lt;BR /&gt;xaxistable resp2 / class=mid2 colorgroup=mid2 attrid=X;&lt;BR /&gt;xaxis display=(nolabel) label="Year";&lt;BR /&gt;yaxis offsetmin=0 label="Rate" tickvalueformat= percent7.0&lt;BR /&gt;REFTICKS label="Second Rate" tickvalueformat= percent7.0;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 14:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318281#M11152</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-12T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the  sgplot  code workable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318285#M11154</link>
      <description>&lt;P&gt;See answer to previous similar post. &amp;nbsp;Use option REFTICKS=(Label values).&lt;/P&gt;
&lt;P&gt;In this case, the right axis is a copy of left axis. &amp;nbsp;Use VALUES option to set the axis range.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318285#M11154</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-12-12T15:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the  sgplot  code workable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318297#M11156</link>
      <description>&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help! Do you know how to add the title' Score distribution' into the head of the image, instead of separating from the image? because I will generate three graphs in sas ods and put them into one PPT slide automatically and each graph needs to have&amp;nbsp;a title at the top, respectively&amp;nbsp;&lt;SPAN&gt;' Score distribution1' ,&amp;nbsp;' Score distribution2',&amp;nbsp;' Score distribution3', would you please give me suggestions? Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318297#M11156</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-12T15:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the  sgplot  code workable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318309#M11157</link>
      <description>&lt;P&gt;The TITLE statement should do that for you automatically, unless you are using the NOGTITLE option on the ODS destination.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318309#M11157</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-12-12T16:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the  sgplot  code workable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318324#M11159</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it wont work. Another question, based on the code above, do you know how to make the graph generated by sgplot smaller? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 17:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318324#M11159</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-12T17:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the  sgplot  code workable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318343#M11160</link>
      <description>&lt;P&gt;SG graphics size is controlled by the ODS Graphics options height and width:&lt;/P&gt;
&lt;P&gt;ODS Graphics /height = 3in width=7in;&lt;/P&gt;
&lt;P&gt;Before the graphics procedure would have a size of 3 inches high by 7 inches wide. Look for other measurement options in the documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 18:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318343#M11160</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-12T18:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the  sgplot  code workable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318348#M11161</link>
      <description>&lt;P&gt;Hi Ballard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help! It works! also, &lt;SPAN&gt;based on the code above,&amp;nbsp;&lt;/SPAN&gt;can you please help me figure out how to change the fontweight and fontsize of&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;the label value, such as label="Rate"&amp;nbsp;label="Second Rate" (please see the code above), I want to change the fontsize of &amp;nbsp;"Rate" &amp;nbsp;and "Second Rate'? Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 18:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318348#M11161</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-12T18:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the  sgplot  code workable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318349#M11162</link>
      <description>&lt;P&gt;May I suggest that, often, a&amp;nbsp;simple search on Google like "&lt;STRONG&gt;sas sgplot axis label font size&lt;/STRONG&gt;" will provide you many answers very quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same applies for other things like graph size, etc. &amp;nbsp;You can also find many examples on &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_self"&gt;Graphically Speaking Blog&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-the-sgplot-code-workable/m-p/318349#M11162</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-12-12T19:07:29Z</dc:date>
    </item>
  </channel>
</rss>

