Hi all, 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: https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-plotting-different-colors-and-markers-for-several/td-p/292326 I tried what they suggested (creating an attribute map), but I always end up with multiple errors and still no graph. The code I use is this one: data myattrmap; input ID $ value $ markercolor $; datalines; Trait Lisier pink Trait Mineral lightblue Trait Luzerne green ; run; PROC GPLOT data= indiv dattrmap=myattrmap; Title "Representation de chaque donnee axe2*axe1"; plot y*x/annotate=indiv frame href=0 vref=0 attrid= "Trait"; symbol1 v=circle ; run; My attribute map seems to be created successfully, and the problem appears when I run the proc SG plot, with the following messages: 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 70 71 PROC GPLOT data= indiv dattrmap=myattrmap; ________ 22 76 ERROR 22-322: Erreur de syntaxe, l'une des valeurs suivantes est attendue : ;, (, ANNOTATE, DATA, GOUT, UNIFORM. ERROR 76-322: Syntax error, statement will be ignored. 72 Title "Representation de chaque donnee axe2*axe1"; ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. NOTE: l'instruction précédente a été supprimée. 73 plot y*x/annotate=indiv frame href=0 vref=0 attrid= "Trait"; ______ 22 76 ERROR 22-322: Erreur de syntaxe, l'une des valeurs suivantes est attendue : une constante numérique, une constante date temps, ;, ',', ANNOTATE, AREAS, AUTOHREF, AUTOVREF, CAUTOHREF, CAUTOVREF, CAXIS, CBASELINE, CFRAME, CHREF, COUTLINE, CTEXT, CVREF, DESCRIPTION, FRAME, FRONTREF, GRID, HAXIS, HMINOR, HREF, HREVERSE, HTML, HTML_LEGEND, HZERO, IFRAME, IMAGESTYLE, LAUTOHREF, LAUTOVREF, LEGEND, LHREF, LVREF, NAME, NOAXIS, NOFRAME, NOLASTAREA, NOLEGEND, OVERLAY, REGEQN, SKIPMISS, TO, URL, VAXIS, VMINOR, VREF, VREVERSE, VZERO, WAUTOHREF, WAUTOVREF, WHREF, WVREF. ERROR 76-322: Syntax error, statement will be ignored. 74 symbol1 v=circle ; 75 76 run; 77 78 79 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; I am sorry as the error messages are in french, but I guess you can still see my mistakes pretty quickly. Also, if you have another solution to reach my objective, i would gladly take it. Thanks in advance, Stéphanie
... View more