<?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 assign different symbol to different line plot  in proc sgpanel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350425#M12163</link>
    <description>&lt;P&gt;&lt;STRIKE&gt;I would suggest raising the issue with SAS Support team as the example in the blog post does not work for me using SAs 9.4.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Perhaps they changed something in 9.4?&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;If you run this code the same symbol is used for both lines which looks like the issue you are seeing.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data= sashelp.class;
  title 'Using the STYLEATTRS statement in SAS 9.4';
  styleattrs 
   datacontrastcolors=(orange purple)
   datalinepatterns=(1) 
   datasymbols=(circlefilled trianglefilled)
  ;
  reg x=weight y=height / group=sex degree=3;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But the SAS log has a note about using the ATTRPRIORITY setting.&lt;/P&gt;
&lt;P&gt;So adding this line before the PROC SGPLOT makes it work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / attrpriority=none;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2017 03:23:24 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-04-17T03:23:24Z</dc:date>
    <item>
      <title>How to assign different symbol to different line plot  in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350413#M12160</link>
      <description>&lt;P&gt;I am trying to assign different symbols to each Temp but I couldn't find a means to do it.&lt;/P&gt;&lt;P&gt;I have 4 temp levels;&lt;/P&gt;&lt;P&gt;This is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgpanel data=EECreduced ;&lt;BR /&gt;panelby MC / spacing=5 novarname ;&lt;BR /&gt;vline day/ response= ECC group=Temp stat=mean markers limitstat=stddev markerattrs=(symbol=plus size=3) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My thinking&lt;/P&gt;&lt;P&gt;from &lt;SPAN&gt;markerattrs= (symbols= plus..) (I should be able to add another code to pick the first temp for plus, second temp arrow down ..etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I attached s sample plot fr your perusal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13716i0871EA04AD60A2A6/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="pictures.JPG" title="pictures.JPG" /&gt;</description>
      <pubDate>Mon, 17 Apr 2017 01:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350413#M12160</guid>
      <dc:creator>Gbenga</dc:creator>
      <dc:date>2017-04-17T01:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign different symbol to different line plot  in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350416#M12161</link>
      <description>&lt;P&gt;Assuming you're using SAS 9.4+ I would recommend the STYLEATTRS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Blog with usage example&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sgf/2014/05/30/assigning-graph-style-attributes-easily/" target="_blank"&gt;http://blogs.sas.com/content/sgf/2014/05/30/assigning-graph-style-attributes-easily/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Documentation&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p0qva1ws6twy5xn0zdl3nslyynvp.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p0qva1ws6twy5xn0zdl3nslyynvp.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 01:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350416#M12161</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-17T01:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign different symbol to different line plot  in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350420#M12162</link>
      <description>&lt;P&gt;Thank you so much for your very helpful response. I appreciate it so much!!.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using sas studio online at home and sas 9.4 in school.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My response is based on the sas studio online&lt;/P&gt;&lt;P&gt;I modified the code as follows&lt;/P&gt;&lt;P&gt;proc sgpanel data=EECreduced ;&lt;BR /&gt;styleattrs datacontrastcolors=(orange black green red) datalinepatterns=(1)&lt;BR /&gt;datasymbols=(circlefilled trianglefilled rectanglefilled sqaurefilled);&lt;BR /&gt;panelby MC / spacing=5 novarname ;&lt;BR /&gt;vline day/ response= ECC group=Temp stat=mean markers limitstat=stddev ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Summary&lt;/P&gt;&lt;P&gt;The colour of each line changed but the symbols remain.&lt;/P&gt;&lt;P&gt;Please see attached&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13717i0025AB24D3164BB3/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="picture2.JPG" title="picture2.JPG" /&gt;</description>
      <pubDate>Mon, 17 Apr 2017 01:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350420#M12162</guid>
      <dc:creator>Gbenga</dc:creator>
      <dc:date>2017-04-17T01:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign different symbol to different line plot  in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350425#M12163</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;I would suggest raising the issue with SAS Support team as the example in the blog post does not work for me using SAs 9.4.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Perhaps they changed something in 9.4?&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;If you run this code the same symbol is used for both lines which looks like the issue you are seeing.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data= sashelp.class;
  title 'Using the STYLEATTRS statement in SAS 9.4';
  styleattrs 
   datacontrastcolors=(orange purple)
   datalinepatterns=(1) 
   datasymbols=(circlefilled trianglefilled)
  ;
  reg x=weight y=height / group=sex degree=3;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But the SAS log has a note about using the ATTRPRIORITY setting.&lt;/P&gt;
&lt;P&gt;So adding this line before the PROC SGPLOT makes it work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / attrpriority=none;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 03:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-assign-different-symbol-to-different-line-plot-in-proc/m-p/350425#M12163</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-17T03:23:24Z</dc:date>
    </item>
  </channel>
</rss>

