<?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 SGPLOT - Set decimal places for marks on Y axis in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-SGPLOT-Set-decimal-places-for-marks-on-Y-axis/m-p/816116#M34298</link>
    <description>&lt;P&gt;Sorry for not being more clear...The VALUESFORMAT= option formats the decimal places on the axis, which I also wanted. I was wanting to format the values of the Y variable and your response jogged my memory. I just need to format the Y variable. Duh.&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 20:53:19 GMT</pubDate>
    <dc:creator>_maldini_</dc:creator>
    <dc:date>2022-06-01T20:53:19Z</dc:date>
    <item>
      <title>PROC SGPLOT - Set decimal places for marks on Y axis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SGPLOT-Set-decimal-places-for-marks-on-Y-axis/m-p/816095#M34294</link>
      <description>&lt;P&gt;I'm outputting percentages from a proc freq to a new dataset and then using proc sgplot to plot the column percentages over time. SAS documentation seems to suggest I should use the&amp;nbsp;PCTNDEC= option, but I can't figure out where to put it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the best option to use and what line should I put it on?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=freqout ;
   where ever_told_mi=1;

   series x=year y=pct_row 
   
   / lineattrs=(thickness=2px) markers DATALABEL=pct_row group=cann_use_status;

   xaxis 
   label = "Time in 2-year intervals"
   values=(2009-2010 to 2017-2018);
  
   yaxis 
   label = "Percentage Reporting Prior MI"
   values=(0 to 100 by 10);
 	
   format 
   ever_told_mi yes_nofmt.
   cann_use_status cann_use_statusfmt.;
 &lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 19:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SGPLOT-Set-decimal-places-for-marks-on-Y-axis/m-p/816095#M34294</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2022-06-01T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT - Set decimal places for marks on Y axis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SGPLOT-Set-decimal-places-for-marks-on-Y-axis/m-p/816107#M34296</link>
      <description>&lt;P&gt;If the YAXIS definition is getting the values you want and just want to display values such as 10.0 then all you should need is to assign an appropriate format to the Y variable labels with the VALUESFORMAT= option on the Yaxis statement.&lt;/P&gt;
&lt;P&gt;It would help if you could describe exactly what sort of values you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PCTNDEC procedure option only applies to plots that calculate their own percentages such as VBAR or HBAR and would not apply to Series&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example that forces the Yaxis tickmarks to display 3 decimals (though they will typically be 000 because of the default rules SAS uses to create tick mark values)&lt;/P&gt;
&lt;PRE&gt;Proc sgplot data=sashelp.class;
   scatter x=height y=weight;
   yaxis valuesformat=f8.3;
run;&lt;/PRE&gt;
&lt;P&gt;Or if you have specific decimals in mind place them in the VALUES list:&lt;/P&gt;
&lt;PRE&gt;Proc sgplot data=sashelp.class;
   scatter x=height y=weight;
   yaxis values=(60.5 93.7 110.9);&lt;BR /&gt;   
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 20:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SGPLOT-Set-decimal-places-for-marks-on-Y-axis/m-p/816107#M34296</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-01T20:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT - Set decimal places for marks on Y axis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SGPLOT-Set-decimal-places-for-marks-on-Y-axis/m-p/816116#M34298</link>
      <description>&lt;P&gt;Sorry for not being more clear...The VALUESFORMAT= option formats the decimal places on the axis, which I also wanted. I was wanting to format the values of the Y variable and your response jogged my memory. I just need to format the Y variable. Duh.&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 20:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SGPLOT-Set-decimal-places-for-marks-on-Y-axis/m-p/816116#M34298</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2022-06-01T20:53:19Z</dc:date>
    </item>
  </channel>
</rss>

