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-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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