I'm using proc sgpanel to create a scatterplot. There is a grouping variable, and I'd like one group (starfilled) to have bigger markers than the other group (circlefilled). Does anyone know how to do this? I can't find a styleattrs or markerattrs option for this.
proc sgpanel data=have noautolegend;
styleattrs datasymbols=(circlefilled starfilled);
panelby visit / columns=3 novarname;
scatter x=xval y=yval / group=Group colorresponse=z;
run;
Look at DATTRMAP in the documentation.
It is a special helper data set that allows you to set properties for group variables such as marker and marker size based on the values.
Or search the Graphics Programming section of the forum for DATTRMAP for some examples.
Look at DATTRMAP in the documentation.
It is a special helper data set that allows you to set properties for group variables such as marker and marker size based on the values.
Or search the Graphics Programming section of the forum for DATTRMAP for some examples.
That worked!! Thank you so much
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.