BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
vstorme
Obsidian | Level 7

Dear all,

I have following code:

data myattrmap;
length linecolor $ 6 linepattern $ 5 markercolor $ 6 markersymbol $ 13;
input ID $ value $ linecolor $ linepattern $ markercolor $ markersymbol $;
datalines;
myid  young teal   solid teal    DiamondFilled
myid  old   purple solid purple  DiamondFilled
;
run;
proc print data = myattrmap;
run;

ods graphics/ reset=all width=16cm ;
title "Results &var by concentration and leaf stage";
Proc SGpanel data = &lib..rides_anno_flag noautolegend dattrmap = myattrmap;
  PanelBy treatment / columns=2;
  series x=date y=&var / group=uniqueID
                         grouplc=leaf lcattrid=myid /*lc line color*/
                         grouplp=leaf lpattrid=myid /*lc line pattern*/
                         groupmc=leaf mcattrid=myid /*lc marker color*/
                         groupms=leaf mcattrid=myid /*lc marker symbol*/
                         markerattrs=(size=10)
                         name='grouping'; 
  keylegend 'grouping' / type=linecolor;
  rowaxis display=(nolabel) grid;
  colaxis values=('11oct2023'd, '18oct2023'd, '25oct2023'd, '2nov2023'd)
          valuesformat = date7.;
  where flag = 0;
run;
title;

according to the SAS documentation, I should be able to control the marker size with markerattrs, but it does not seem to have an effect:

vstorme_0-1699274931168.png

I am using sas-analytics-pro on SAS Studio (SAS Viya) version: V.04.00M0P031323

Can somebody clarify this?

Thanks, Veronique

1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

OK, I found it ...
You need

markers markerattrs=(size=10);  

instead of just

markerattrs=(size=10);  

Koen

View solution in original post

4 REPLIES 4
sbxkoenk
SAS Super FREQ

Not sure these blog posts contain the answer to your specific question, but wanted to let them know to you anyway:

BR, Koen

sbxkoenk
SAS Super FREQ

Another option ... try GTL with PROC SGRENDER.

Sample 52962: Create a spaghetti plot with the Graph Template Language (GTL)
https://support.sas.com/kb/52/962.html

Koen

sbxkoenk
SAS Super FREQ

OK, I found it ...
You need

markers markerattrs=(size=10);  

instead of just

markerattrs=(size=10);  

Koen

vstorme
Obsidian | Level 7
ah yes, that makes sense! I had it before and then removed it when adding groupmc and groupms.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 847 views
  • 4 likes
  • 2 in conversation