<?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 dattrmap in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484937#M16721</link>
    <description>Can you show what isn't working? Post a picture or error message? I tried your attribute map and sgplot code on my own data and it worked.</description>
    <pubDate>Tue, 07 Aug 2018 22:58:09 GMT</pubDate>
    <dc:creator>JeffMeyers</dc:creator>
    <dc:date>2018-08-07T22:58:09Z</dc:date>
    <item>
      <title>Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484904#M16714</link>
      <description>&lt;P&gt;I am trying to set the attributes of treatment arm using dattrmap option in proc sgplot but there is no impact.&lt;/P&gt;&lt;P&gt;My group variable is subject and I am using grouplc = treatment. I am trying to control attributes of treatment&lt;/P&gt;&lt;P&gt;but it is not working. Is it because group variable is not treatment ? Is there any way around it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data mapt;&lt;BR /&gt;length linecolor $10 linepattern $10;&lt;BR /&gt;id = "trt" ;&lt;BR /&gt;value = "A" ;&lt;BR /&gt;linecolor = "blue" ;&lt;BR /&gt;linepattern = "mediumdash" ;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;id = "trt";&lt;BR /&gt;value = "B";&lt;BR /&gt;linecolor = "green";&lt;BR /&gt;linepattern = "solid" ;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;id = "trt";&lt;BR /&gt;value = "C";&lt;BR /&gt;linecolor = "red";&lt;BR /&gt;linepattern = "mediumdash" ;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;id = "trt";&lt;BR /&gt;value = "D";&lt;BR /&gt;linecolor = "brown";&lt;BR /&gt;linepattern = "solid" ;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data = lbtest dattrmap = mapt noautolegend ;&lt;BR /&gt;series x = weeks y = _lbstresn / group = subjid grouplc = treatment attrid = trt name = "ser1" ;&lt;BR /&gt;xaxis label = "Study Weeks" values = (&amp;amp;val1 to &amp;amp;val2 by &amp;amp;by);&lt;BR /&gt;yaxis label = &amp;amp;lbl values = (&amp;amp;val1 to &amp;amp;val2 by &amp;amp;by );&lt;BR /&gt;keylegend "ser1" /type = linecolor location = outside valueattrs = (size=6) title = 'Treatment' ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 22:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484904#M16714</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2018-08-07T22:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484917#M16715</link>
      <description>&lt;P&gt;Try changing your SGPLOT to this.&amp;nbsp; It looks like your grouplc variable needs to match the attrid variable.&amp;nbsp; you also can't have multiple / in a statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = lbtest (rename=(treatment=trt)) dattrmap = mapt noautolegend ;
series x = weeks y = _lbstresn / group = subjid grouplc = trt attrid = trt name = "ser1" ;
xaxis label = "Study Weeks" values = (&amp;amp;val1 to &amp;amp;val2 by &amp;amp;by);
yaxis label = &amp;amp;lbl values = (&amp;amp;val1 to &amp;amp;val2 by &amp;amp;by );
keylegend "ser1" /type = linecolor location = outside valueattrs = (size=6) title = 'Treatment' ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Aug 2018 21:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484917#M16715</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-08-07T21:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484918#M16716</link>
      <description>&lt;P&gt;Sorry there was typo in the sample code. The attrid is actually matching. I tried the solution you mentioned but it is not working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 21:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484918#M16716</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2018-08-07T21:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484922#M16717</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the LCATTRID= to associate the GROUPLC= variable with the attribute map id instead of attrid=&lt;/P&gt;
&lt;P&gt;I am not sure the second / in the series statement is a good idea.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 21:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484922#M16717</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-07T21:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484925#M16718</link>
      <description>&lt;P&gt;Getting error for this&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;LCATTRID= option. Not sure if it is available.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 22:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484925#M16718</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2018-08-07T22:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484928#M16719</link>
      <description>&lt;P&gt;Can you give a PROC FREQ of your TRT (or TREATMENT) variable?&amp;nbsp; The formatted values have to exactly match those in the attribute map.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 22:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484928#M16719</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-08-07T22:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484934#M16720</link>
      <description>&lt;P&gt;I understand it has to match. I made sure it is. I directly copied it from data to avoid any typo but it is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 22:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484934#M16720</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2018-08-07T22:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484937#M16721</link>
      <description>Can you show what isn't working? Post a picture or error message? I tried your attribute map and sgplot code on my own data and it worked.</description>
      <pubDate>Tue, 07 Aug 2018 22:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484937#M16721</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-08-07T22:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484944#M16722</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91198"&gt;@Leo9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Getting error for this&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;LCATTRID= option. Not sure if it is available.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;copy the code and any warnings or errors from the log and paste them into a code box opened using the forums {I} menu icon.&lt;/P&gt;
&lt;P&gt;The code box is to maintain text formatting as the message windows here will reformat the diagnostics SAS often supplies with errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also which version of SAS are you running?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 23:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484944#M16722</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-07T23:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot dattrmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484947#M16723</link>
      <description>&lt;P&gt;I am using 9.4M2 I think this option is available from M3 onward.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 23:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-dattrmap/m-p/484947#M16723</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2018-08-07T23:41:23Z</dc:date>
    </item>
  </channel>
</rss>

