<?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: Plotting data with different marker colors - error with attribute map in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501467#M17099</link>
    <description>&lt;P&gt;&lt;A href="http://support.sas.com/documentation/prod-p/grstat/9.4/en/PDF/odsbasicg.pdf" target="_blank"&gt;http://support.sas.com/documentation/prod-p/grstat/9.4/en/PDF/odsbasicg.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me also plug this free introductory book.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 13:31:56 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2018-10-04T13:31:56Z</dc:date>
    <item>
      <title>Plotting data with different marker colors - error with attribute map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501378#M17095</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build a graph using different colors of markers, depending on treatments. I found this thread, with the same question that I had:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-plotting-different-colors-and-markers-for-several/td-p/292326" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-plotting-different-colors-and-markers-for-several/td-p/292326&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried what they suggested (creating an attribute map), but I always end up with multiple errors and still no graph.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I use is this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data myattrmap;&lt;/P&gt;&lt;P&gt;input ID $ value $ markercolor $;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;Trait Lisier pink&lt;/P&gt;&lt;P&gt;Trait Mineral lightblue&lt;/P&gt;&lt;P&gt;Trait Luzerne green ;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;&lt;BR /&gt;PROC GPLOT data= indiv dattrmap=myattrmap;&lt;BR /&gt;Title "Representation de chaque donnee axe2*axe1";&lt;BR /&gt;plot y*x/annotate=indiv frame href=0 vref=0 attrid= "Trait";&lt;BR /&gt;symbol1 v=circle ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My attribute map seems to be created successfully, and the problem appears when I run the proc SG plot, with the following messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 PROC GPLOT data= indiv dattrmap=myattrmap;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Erreur de syntaxe, l'une des valeurs suivantes est attendue : ;, (, ANNOTATE, DATA, GOUT, UNIFORM.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 Title "Representation de chaque donnee axe2*axe1";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: No data set open to look up variables.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: No data set open to look up variables.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;NOTE: l'instruction précédente a été supprimée.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 plot y*x/annotate=indiv frame href=0 vref=0 attrid= "Trait";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;______&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Erreur de syntaxe, l'une des valeurs suivantes est attendue : une constante numérique, une constante date temps, ;,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;',', ANNOTATE, AREAS, AUTOHREF, AUTOVREF, CAUTOHREF, CAUTOVREF, CAXIS, CBASELINE, CFRAME, CHREF, COUTLINE, CTEXT,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;CVREF, DESCRIPTION, FRAME, FRONTREF, GRID, HAXIS, HMINOR, HREF, HREVERSE, HTML, HTML_LEGEND, HZERO, IFRAME,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;IMAGESTYLE, LAUTOHREF, LAUTOVREF, LEGEND, LHREF, LVREF, NAME, NOAXIS, NOFRAME, NOLASTAREA, NOLEGEND, OVERLAY, REGEQN,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;SKIPMISS, TO, URL, VAXIS, VMINOR, VREF, VREVERSE, VZERO, WAUTOHREF, WAUTOVREF, WHREF, WVREF.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 symbol1 v=circle ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry as the error messages are in french, but I guess you can still see my mistakes pretty quickly.&lt;/P&gt;&lt;P&gt;Also, if you have another solution to reach my objective, i would gladly take it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Stéphanie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 08:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501378#M17095</guid>
      <dc:creator>stephanie_h6</dc:creator>
      <dc:date>2018-10-04T08:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting data with different marker colors - error with attribute map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501386#M17096</link>
      <description>&lt;P&gt;Attribute maps only work with SAS 9.4 and SGPLOT, SGSCATTER, and SGPANEL, they are not available for the ancient and dreadful gplot system.&amp;nbsp; Drop gplot and move to a modern graphing system such as sgplot or GTL.&amp;nbsp; If you need help on that, this is the best resource out there, with example code:&lt;BR /&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for your error, its probable that you don't have graph available, are you perhaps using SAS University Edition?&amp;nbsp; That doesn't have gplot for instance.&amp;nbsp; If not, have you closed and restarted SAS, then run just that bit of code as you may have errors from before holding over.&amp;nbsp; As the log goes from 1 to 70, we appear to be missing a big chunk of what could decipher this error.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 08:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501386#M17096</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-04T08:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting data with different marker colors - error with attribute map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501423#M17097</link>
      <description>&lt;P&gt;Thank you for your answer. I am indeed using Sas Studio through Sas OnDemand for Academics.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You pointed out my mistake: i was using the gplot instead of the sgplot procedure. So I changed the "plot" for the "scatter", with the good options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 11:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501423#M17097</guid>
      <dc:creator>stephanie_h6</dc:creator>
      <dc:date>2018-10-04T11:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting data with different marker colors - error with attribute map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501467#M17099</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/documentation/prod-p/grstat/9.4/en/PDF/odsbasicg.pdf" target="_blank"&gt;http://support.sas.com/documentation/prod-p/grstat/9.4/en/PDF/odsbasicg.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me also plug this free introductory book.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 13:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-data-with-different-marker-colors-error-with-attribute/m-p/501467#M17099</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-10-04T13:31:56Z</dc:date>
    </item>
  </channel>
</rss>

