<?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 Proc gplot color and symbol question in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/60070#M2012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you'll want to use the 'repeat=' option on your symbol statement, to repeat the marker value= and line interpol= for all ~30 of your samples.&amp;nbsp; I typically use a repeat number much higher than I actually need, just to be on the safe side.&amp;nbsp; Here's a short example to get you started...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol value=dot interpol=join repeat=100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=maps.us;&lt;BR /&gt;plot y*x=state;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2011 12:54:02 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2011-09-02T12:54:02Z</dc:date>
    <item>
      <title>Proc gplot color and symbol question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/60069#M2011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running into this issue and it would be great if someone can help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following statements:&lt;/P&gt;&lt;P&gt;goptions vsize=5 hsize=7 gunit=pct cback=white horigin=0.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ftext=swiss ftitle=swissb htitle=3 htext=3;&lt;/P&gt;&lt;P&gt;symbol value=dot interpol=hilobj;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=all;&lt;/P&gt;&lt;P&gt;plot y * instrument = sample;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I have about 30 samples, SAS seems to be running out of colors and after 12 samples, it starts with the same set of colors but now with other symbols. And, most importantly, it is not drawing those lines connecting the samples (across the 3 instruments) once it switches to the different symbol-so I have lines joining the first 12 samples only. Is there a way to make SAS draw the lines for all the samples (i.e. make SAS use only dots and some more colors additional to the first 12)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for reading! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 22:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/60069#M2011</guid>
      <dc:creator>SAS_User</dc:creator>
      <dc:date>2011-09-01T22:11:02Z</dc:date>
    </item>
    <item>
      <title>Proc gplot color and symbol question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/60070#M2012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you'll want to use the 'repeat=' option on your symbol statement, to repeat the marker value= and line interpol= for all ~30 of your samples.&amp;nbsp; I typically use a repeat number much higher than I actually need, just to be on the safe side.&amp;nbsp; Here's a short example to get you started...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol value=dot interpol=join repeat=100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=maps.us;&lt;BR /&gt;plot y*x=state;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 12:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/60070#M2012</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-09-02T12:54:02Z</dc:date>
    </item>
    <item>
      <title>Proc gplot color and symbol question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/60071#M2013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much! I finally had a chance to try that and it worked very well for me. Thanks for your answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 18:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/60071#M2013</guid>
      <dc:creator>SAS_User</dc:creator>
      <dc:date>2011-09-29T18:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gplot color and symbol question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/345660#M12015</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this approach (using SAS Studio in a SAS Grid environment, V3.5 (Enterprise Edition)) with proc gplot and I am successful in getting all of my data represented with a symbol&amp;nbsp;value = dot, but even with the r=100 (for example) option&amp;nbsp;I am still only seeing the same 12&amp;nbsp;colors repeated over my many series.&amp;nbsp; Has something changed in since this post (e.g., a new option that I should&amp;nbsp;be choosing) that might solve this issue for me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol interpol=join value=dot r=100;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any guidance,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 07:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/345660#M12015</guid>
      <dc:creator>CRMcClure</dc:creator>
      <dc:date>2017-03-30T07:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gplot color and symbol question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/345761#M12017</link>
      <description>&lt;P&gt;CRMcClure - I believe what you are seeing is the expected behavior. In recent versions of SAS, default colors are controlled by ods styles (the default style probably being htmlblue), and I believe the styles have about 12 colors in them. I think in most SAS/Graph procs, once the color list is exhausted, the colors are recycled with a slightly different shade (I forget if it's lighter or darker).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But really, once you have more than a few (maybe 5?) colors in a plot ... especially a line plot, I don't think most users will be able to discern them. I would suggest possibly using another strategy to color your lines. I often find that in a plot with a lot of lines, it is often useful to make all the lines a light color, and the the one line-of-interest red. Here's an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd89/life_expectancy_healthcare.htm" target="_blank"&gt;http://robslink.com/SAS/democd89/life_expectancy_healthcare.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd89/life_expectancy_healthcare.sas" target="_blank"&gt;http://robslink.com/SAS/democd89/life_expectancy_healthcare.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8041iFA09C769B2047B63/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="life_expectancy_healthcare.png" title="life_expectancy_healthcare.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/345761#M12017</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2017-03-30T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gplot color and symbol question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/376165#M12979</link>
      <description>&lt;P&gt;Much appreciated, this helped me solve my problem.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 21:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gplot-color-and-symbol-question/m-p/376165#M12979</guid>
      <dc:creator>CRMcClure</dc:creator>
      <dc:date>2017-07-14T21:52:45Z</dc:date>
    </item>
  </channel>
</rss>

