<?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: round in displaystats in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/round-in-displaystats/m-p/623070#M19415</link>
    <description>&lt;P&gt;Just use the FORMAT statement in your Proc SGRENDER. This will also work with Proc SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See example code below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
  vbox weight / 
    category=sex  DISPLAYSTATS=(n mean median)
  ;
  format weight comma10.5;
run;

ods path
  (prepend) work.templates (update)
;

proc template;
  define statgraph test1;
    begingraph;
      layout overlay;
        boxplot x=sex
          y=weight
          /
          displaystats=(n mean median)
        ;
      endlayout;
    endgraph;
  end;
run;

proc sgrender data=sashelp.class template=test1;
  format weight comma10.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Feb 2020 15:15:44 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2020-02-07T15:15:44Z</dc:date>
    <item>
      <title>round in displaystats</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/round-in-displaystats/m-p/622987#M19412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to round mean and median, I use proc template to produce my boxplot. Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;template&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;statgraph&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;begingraph&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;layout&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;overlay&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;boxplot&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=sex &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=weight &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;displaystats=(n &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;mean&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;median&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;endlayout&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;endgraph&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sgrender&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=sashelp.class &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;template&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 09:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/round-in-displaystats/m-p/622987#M19412</guid>
      <dc:creator>Muandre</dc:creator>
      <dc:date>2020-02-07T09:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: round in displaystats</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/round-in-displaystats/m-p/623070#M19415</link>
      <description>&lt;P&gt;Just use the FORMAT statement in your Proc SGRENDER. This will also work with Proc SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See example code below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
  vbox weight / 
    category=sex  DISPLAYSTATS=(n mean median)
  ;
  format weight comma10.5;
run;

ods path
  (prepend) work.templates (update)
;

proc template;
  define statgraph test1;
    begingraph;
      layout overlay;
        boxplot x=sex
          y=weight
          /
          displaystats=(n mean median)
        ;
      endlayout;
    endgraph;
  end;
run;

proc sgrender data=sashelp.class template=test1;
  format weight comma10.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Feb 2020 15:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/round-in-displaystats/m-p/623070#M19415</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-02-07T15:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: round in displaystats</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/round-in-displaystats/m-p/624747#M19467</link>
      <description>&lt;P&gt;Perfect! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 07:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/round-in-displaystats/m-p/624747#M19467</guid>
      <dc:creator>Muandre</dc:creator>
      <dc:date>2020-02-14T07:44:19Z</dc:date>
    </item>
  </channel>
</rss>

