<?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: what gives, trying to plot different symbols on different lines in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69313#M2426</link>
    <description>Without the data to try it out, I'm just going on a "hunch" here, but ...&lt;BR /&gt;
&lt;BR /&gt;
I think when you use y*x=cd it will only connect the markers that have the same value of CD.&lt;BR /&gt;
&lt;BR /&gt;
But you can "trick" it into looking like they are connected, by first doing a plot of just the line, and then doing a plot of the different markers, and overlay them.  Something like the following (not 100% sure this code will work ver-batim, since I don't have the data)...&lt;BR /&gt;
&lt;BR /&gt;
ps - I'm assuming you don't really want to plot "by cd date", because that would produce a separate plot for each cd and each date (that's not what you want, right?)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
symbol1 interpol=none v=triangle c=red;&lt;BR /&gt;
symbol2 interpol=none v=circle c=green;&lt;BR /&gt;
symbol3 interpol=none v=square c=pink;&lt;BR /&gt;
symbol4 interpol=none v=diamond c=purple;&lt;BR /&gt;
symbol5 interpol=none v=dot c=tan;&lt;BR /&gt;
symbol6 interpol=j v=none c=black;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=bill;&lt;BR /&gt;
	plot n*date=6 n*date=CD/ overlay haxis=axis2;&lt;BR /&gt;
  run;quit;</description>
    <pubDate>Thu, 18 Mar 2010 17:41:39 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2010-03-18T17:41:39Z</dc:date>
    <item>
      <title>what gives, trying to plot different symbols on different lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69312#M2425</link>
      <description>I have the following program.  I have 5 different values for CD.  Each one has a value for each month.  I want to connect the points with a line and plot a different symbol for each line.  However, it is not working.  What gives?&lt;BR /&gt;
&lt;BR /&gt;
axis2 label=('Month and Year') value=(h=8pt a=90); &lt;BR /&gt;
&lt;BR /&gt;
ods rtf body="chart.rtf" ;&lt;BR /&gt;
symbol1 interpol=j v=triangle;;&lt;BR /&gt;
symbol2 interpol=j v=circle;&lt;BR /&gt;
symbol3 interpol=j v=square;&lt;BR /&gt;
symbol4 interpol=j v=diamond;&lt;BR /&gt;
symbol5 interpol=j v=dot;&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=bill; by  CD date;&lt;BR /&gt;
proc gplot data=bill;&lt;BR /&gt;
	plot n*date=CD/ haxis=axis2;&lt;BR /&gt;
  run;quit;&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
run;quit;</description>
      <pubDate>Thu, 18 Mar 2010 16:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69312#M2425</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-18T16:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: what gives, trying to plot different symbols on different lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69313#M2426</link>
      <description>Without the data to try it out, I'm just going on a "hunch" here, but ...&lt;BR /&gt;
&lt;BR /&gt;
I think when you use y*x=cd it will only connect the markers that have the same value of CD.&lt;BR /&gt;
&lt;BR /&gt;
But you can "trick" it into looking like they are connected, by first doing a plot of just the line, and then doing a plot of the different markers, and overlay them.  Something like the following (not 100% sure this code will work ver-batim, since I don't have the data)...&lt;BR /&gt;
&lt;BR /&gt;
ps - I'm assuming you don't really want to plot "by cd date", because that would produce a separate plot for each cd and each date (that's not what you want, right?)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
symbol1 interpol=none v=triangle c=red;&lt;BR /&gt;
symbol2 interpol=none v=circle c=green;&lt;BR /&gt;
symbol3 interpol=none v=square c=pink;&lt;BR /&gt;
symbol4 interpol=none v=diamond c=purple;&lt;BR /&gt;
symbol5 interpol=none v=dot c=tan;&lt;BR /&gt;
symbol6 interpol=j v=none c=black;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=bill;&lt;BR /&gt;
	plot n*date=6 n*date=CD/ overlay haxis=axis2;&lt;BR /&gt;
  run;quit;</description>
      <pubDate>Thu, 18 Mar 2010 17:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69313#M2426</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-03-18T17:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: what gives, trying to plot different symbols on different lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69314#M2427</link>
      <description>Ah the color!&lt;BR /&gt;
&lt;BR /&gt;
I was not interested in controlling the color so I left it out.  Now my chart works</description>
      <pubDate>Thu, 18 Mar 2010 18:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69314#M2427</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-18T18:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: what gives, trying to plot different symbols on different lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69315#M2428</link>
      <description>Yes, you'll (almost) _always_ want to specify a color in your symbol statements.  If you don't, then I believe it cycles through all the colors in your color list for each symbol, before it starts using the next symbol (... or something like that).  &lt;BR /&gt;
&lt;BR /&gt;
I'm not 100% sure, because I always specify a color &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 18 Mar 2010 18:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69315#M2428</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-03-18T18:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: what gives, trying to plot different symbols on different lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69316#M2429</link>
      <description>Here's a tip if you are using SAS 9.2:&lt;BR /&gt;
&lt;BR /&gt;
As Robert said, you need to specify a color to make the graph procedure move to the next global statement; however, you may just want to use a color from the ODS style instead of picking a custom color. You can do this by specifying the color as _style_&lt;BR /&gt;
&lt;BR /&gt;
symbol i=join color=_style_;&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
      <pubDate>Thu, 18 Mar 2010 19:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69316#M2429</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-03-18T19:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: what gives, trying to plot different symbols on different lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69317#M2430</link>
      <description>sorry still running 9.1.</description>
      <pubDate>Mon, 22 Mar 2010 15:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/what-gives-trying-to-plot-different-symbols-on-different-lines/m-p/69317#M2430</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-22T15:11:48Z</dc:date>
    </item>
  </channel>
</rss>

