<?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 'link' changed template and proc sgplot if 'group' option is used in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410276#M14054</link>
    <description>&lt;P&gt;Thank you! It&amp;nbsp;has sorted everything out in one minute.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 15:11:17 GMT</pubDate>
    <dc:creator>DmytroYermak</dc:creator>
    <dc:date>2017-11-03T15:11:17Z</dc:date>
    <item>
      <title>How to 'link' changed template and proc sgplot if 'group' option is used</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410236#M14050</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help to correct the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sgplot&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;F1 noautolegend&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

   styleattrs datacontrastcolors&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;black&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
               datasymbols&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;trianglefilled circlefilled squarefilled diamondfilled triangle circle square diamond&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
               datalinepatterns&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;solid&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; 

   scatter x&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;PCTPT y&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;mean&lt;/SPAN&gt; 
							grouporder&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;
                            yerrorlower&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;lower                                                                                            
                            yerrorupper&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;upper
                            name &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"Scatter"&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;                                                                               
   series x&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;PCTPT y&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;mean&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;   name &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"Series"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

   &lt;SPAN class="token statement"&gt;xaxis&lt;/SPAN&gt; type &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; discrete&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token statement"&gt;yaxis&lt;/SPAN&gt; type &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

 
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 07:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410236#M14050</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-03-06T07:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'link' changed template and proc sgplot if 'group' option is used</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410240#M14051</link>
      <description>&lt;P&gt;If you are asking how to make SGPLOT use your new style, then put it on a destination statement.&amp;nbsp; Example:&lt;/P&gt;
&lt;P&gt;ods html style=newblue;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410240#M14051</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-03T14:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'link' changed template and proc sgplot if 'group' option is used</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410245#M14052</link>
      <description>&lt;P&gt;Another approach could be the option DATTRMAP which&amp;nbsp;allows you to specify group symbol appearance options based on the values of your group variable without changing any style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATTRMAP is a data set that would be referenced on the Proc statement and then an attrid option is added to the specific plots to indicate which attribute map value to use with that specific plot.&lt;/P&gt;
&lt;P&gt;Your data set would have one line for each value of the group variable, a name to reference and values for the graph items you want to use.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410245#M14052</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-03T14:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'link' changed template and proc sgplot if 'group' option is used</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410259#M14053</link>
      <description>&lt;P&gt;Both above suggestions will work.&amp;nbsp; If you just need different attributes per group, and not specific attribute per group "value" (as in IBM should always be blue), an easier way is to use the SGPLOT STYLEATTRS statement.&amp;nbsp; No need to create a new style or a Discrete Attributes data set.&amp;nbsp; Please see &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2013/07/14/setting-graph-colors-is-easier-with-sas-9-4/" target="_blank"&gt;blog article on this topic&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410259#M14053</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-11-03T14:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'link' changed template and proc sgplot if 'group' option is used</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410276#M14054</link>
      <description>&lt;P&gt;Thank you! It&amp;nbsp;has sorted everything out in one minute.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 15:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410276#M14054</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2017-11-03T15:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'link' changed template and proc sgplot if 'group' option is used</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410794#M14089</link>
      <description>&lt;P&gt;Final code (if someone is interested):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=F1 noautolegend;

   styleattrs datacontrastcolors=(black)
               datasymbols=(trianglefilled circlefilled squarefilled diamondfilled triangle circle square diamond)
               datalinepatterns=(solid); 

   scatter x=PCTPT y=mean / group=TRT01A
							grouporder=data
                            yerrorlower=lower                                                                                            
                            yerrorupper=upper
                            name = "Scatter" ;                                                                               
   series x=PCTPT y=mean /  markers group=TRT01A name = "Series";

   xaxis type = discrete;
   yaxis type = log;

   keylegend "Series"  / location=outside position=topright across=1 noborder;
   format PCTPT $PCTPTF.;
 
run;  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-link-changed-template-and-proc-sgplot-if-group-option-is/m-p/410794#M14089</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2017-11-06T10:43:45Z</dc:date>
    </item>
  </channel>
</rss>

