<?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: choosing non-consecutive symbols in gplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38575#M1228</link>
    <description>Sure - you can use plot y*x=# with overlays!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Here's a (nonsense) example...&lt;BR /&gt;
&lt;BR /&gt;
symbol1 value=dot color=red;&lt;BR /&gt;
symbol2 value=square color=blue;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
plot age*weight=1 height*weight=2 / overlay;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But, rather than using "plot (var1 var2)*time, you'll need to construct your plot statement as "plot var1*time=1 plot var2*time=3" and so on...</description>
    <pubDate>Tue, 23 Nov 2010 14:04:55 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2010-11-23T14:04:55Z</dc:date>
    <item>
      <title>choosing non-consecutive symbols in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38572#M1225</link>
      <description>Hello,&lt;BR /&gt;
I have a gplot procedure that I want to run with various combinations of variables.&lt;BR /&gt;
I am using a macro so that I can run these.  &lt;BR /&gt;
The gplot code includes symbol definitions symbol1 - symbol10.  &lt;BR /&gt;
If, for example, I want to plot only 4 of the variables,is there anyway that I can tell the plot to use symbol2, symbol4, symbol6 and symbol8 rather than run through the symbol list consecutively?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Tue, 23 Nov 2010 12:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38572#M1225</guid>
      <dc:creator>natanya</dc:creator>
      <dc:date>2010-11-23T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: choosing non-consecutive symbols in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38573#M1226</link>
      <description>When you say "plot y*x" you can specify which symbol statement to use (plot y*x=#), rather than taking the default. &lt;BR /&gt;
&lt;BR /&gt;
For example...&lt;BR /&gt;
&lt;BR /&gt;
symbol1 value=dot color=red;&lt;BR /&gt;
symbol2 value=square color=blue;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
plot height*weight=2;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 23 Nov 2010 13:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38573#M1226</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-11-23T13:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: choosing non-consecutive symbols in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38574#M1227</link>
      <description>Thank you Robert,&lt;BR /&gt;
The problem is that y*x=2 doesn't work with overlays.&lt;BR /&gt;
The code is something like this:&lt;BR /&gt;
---------------------------------------------------&lt;BR /&gt;
%macro m(var haxis vaxis legend);&lt;BR /&gt;
proc gplot data=match&lt;BR /&gt;
;	symbol1 h=1 v=dot i=join c=blue line=1;&lt;BR /&gt;
	symbol2 h=1 v=star i=join c=red font= line=1;&lt;BR /&gt;
	symbol3 h=1 v=triangle i=join c=blue font= line=1;&lt;BR /&gt;
	symbol4 h=1 v=square i=join c=red line=1;&lt;BR /&gt;
	symbol5 h=1 v=dot i=join c=blue line=1;&lt;BR /&gt;
	plot (&amp;amp;var)*time / haxis=&amp;amp;haxis vaxis=&amp;amp;vaxis legend=&amp;amp;legend skipmiss overlay;;&lt;BR /&gt;
run;quit;&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%m(a b c d e,axis1, axis2,legend1);&lt;BR /&gt;
%m(a c e, axis1, axis2, legend1);&lt;BR /&gt;
&lt;BR /&gt;
-----------------------------------------------------&lt;BR /&gt;
Is there a way to assign symbol1, symbol3 and symbol5 (corresponding to a, c and e, to the second macro statement?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Tue, 23 Nov 2010 13:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38574#M1227</guid>
      <dc:creator>natanya</dc:creator>
      <dc:date>2010-11-23T13:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: choosing non-consecutive symbols in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38575#M1228</link>
      <description>Sure - you can use plot y*x=# with overlays!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Here's a (nonsense) example...&lt;BR /&gt;
&lt;BR /&gt;
symbol1 value=dot color=red;&lt;BR /&gt;
symbol2 value=square color=blue;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
plot age*weight=1 height*weight=2 / overlay;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But, rather than using "plot (var1 var2)*time, you'll need to construct your plot statement as "plot var1*time=1 plot var2*time=3" and so on...</description>
      <pubDate>Tue, 23 Nov 2010 14:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38575#M1228</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-11-23T14:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: choosing non-consecutive symbols in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38576#M1229</link>
      <description>Brilliant! &lt;BR /&gt;
Thanks so much for your help and attention.</description>
      <pubDate>Tue, 23 Nov 2010 14:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/choosing-non-consecutive-symbols-in-gplot/m-p/38576#M1229</guid>
      <dc:creator>natanya</dc:creator>
      <dc:date>2010-11-23T14:27:43Z</dc:date>
    </item>
  </channel>
</rss>

