<?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: Lebel groups in PROC SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393482#M13505</link>
    <description>&lt;P&gt;Formatting does not change the underlying data, its still the number if you remove the format. &amp;nbsp;If you don't want to format the a data and you do not want to create a new variable, then you are stuck I am afraid, you have to tell SAS somehow what values to display.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 09:34:18 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-09-06T09:34:18Z</dc:date>
    <item>
      <title>Label groups in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393172#M13490</link>
      <description>&lt;P&gt;I drawing some graphs (time series) with PROC SGPLOT. I use the GROUP function to have one line for each group. The value of the group in my dataset is numerical (i.e. 0,1,2,3,4,5). However, when I draw the graphs, I would like to assign some name to each group so that it displays the names instead of the numbers.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=population;
	styleattrs datacontrastcolors=(red blue orange black)
	datasymbols=(circlefilled trianglefilled squarefilled dot)
	datalinepatterns=(solid dash longdash dot) ;
	series x=year y=population/group=continent;
run;
*continent variable can be 1,2,3,4 which corresponds to Asia, Europe, America and Africa; &lt;BR /&gt;*So instead of displaying 4 lines with label 1,2,3,4 on the bottom, I would like to display Asia, Europe, America, Africa;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Well, one way is to create another variable and assign string values corresponding to the numerical value. But I dont really want to do this as it consumes memory. I hope there is a quick way with PROC SGPLOT&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2017 05:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393172#M13490</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2017-09-10T05:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lebel groups in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393185#M13491</link>
      <description>&lt;P&gt;Create a format with your decodes/strings, and apply the format to the data:&lt;/P&gt;
&lt;PRE&gt;proc format;
  value tmp
    1="Asia"
    2=...;
run;

data population;
  set population;
  format continent tmp.;
run; &lt;/PRE&gt;
&lt;P&gt;Then it should display the strings.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 12:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393185#M13491</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-05T12:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lebel groups in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393473#M13504</link>
      <description>Thanks, but I dont want to reformat or change the value of the continent&lt;BR /&gt;variable. I want to keep it as numbers.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2017 09:26:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393473#M13504</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2017-09-06T09:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lebel groups in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393482#M13505</link>
      <description>&lt;P&gt;Formatting does not change the underlying data, its still the number if you remove the format. &amp;nbsp;If you don't want to format the a data and you do not want to create a new variable, then you are stuck I am afraid, you have to tell SAS somehow what values to display.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 09:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-groups-in-PROC-SGPLOT/m-p/393482#M13505</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-06T09:34:18Z</dc:date>
    </item>
  </channel>
</rss>

