Hi,
I am trying to draw a graph using sgplot. but why my graph in output doesn't shown datasymbols? Here is my code:
proc sgplot data= plt nowall noborder;
styleattrs datacontrastcolors=(blue red mediumgreen magenta orange lilac)
datasymbols=(circlefilled squarefilled trianglefilled triangleDownfilled DiamondFilled circle square)
datalinepatterns=(solid);
title height=.22in font ="Arial" 'PLT';
series x=days y = result /
group = patient groupdisplay=cluster clusterwidth=0.5
lineattrs=(thickness=3) markers markerattrs=(size=11);
xaxis label='Time (Days)' values = (0 to 60 by 5) offsetmin=0.003
labelattrs = (Family=Arial size = 12 weight = bold) valueattrs = (Family=Arial size = 12 weight = bold);
yaxis label="PLT K/uL" values = (0 to 700 by 100) offsetmin=0 labelattrs = (Family=Arial size = 12 weight = bold)
valueattrs = (Family=Arial size = 12 weight = bold);
keylegend / titleattrs = (size = 8 ) valueattrs=(Family=Arial size = 12 weight=bold)
position = right noborder title="" linelength=0.5cm;
run;Here is my graph in output:
Put ATTRPRIORITY=NONE on your ODS destination statement.
Put ATTRPRIORITY=NONE on your ODS destination statement.
Yes! That works!!! Thanks so much!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.