HELP, when changing the font to courier new with SGPLOT it seems that the label and legend text is not as bright as the lines in the figure, any idea how I can change this without setting the font to bold?
In your Keylegend statement use titleattrs={}
and set the size bigger, per SAS Help:
proc sgplot data=L_01 (where=(TRTA="&TRT1." and SUBJID="&SUB1."));
XAXIS label = "Time (h)" values = (0 to 25 by 1);
YAXIS label = "Plasma concentration (ng/mL)" values = (0 to 8000 by 400) LABELATTRS=GraphLabelText;
*scatter x=ATPTN y=AVAL / yerrorlower=MSDN yerrorupper=MSDP markerattrs=(color=black symbol=IBEAM);
series x=ARELTM y=AVAL / MARKERS MARKERATTRS=(COLOR=black) LINEATTRS=(COLOR=black THICKNESS=0.01mm) name="s1";
KEYLEGEND "s1" / NOBORDER LOCATION=INSIDE POSITION=TOPRIGHT TITLE= "Planned Dose";
run;
this is the code I used and I tried to add the attribute option everywhere and every time sas hands me an error msg, the code above generates this error msg
WARNING 1-322: Assuming the symbol LABEL was misspelled as LABELATTRS.
When I run your code, I don't get this warning. I suspect a version issue: The LABELATTRS= option has been available only since SAS 9.3. Are you perhaps using 9.2?
As mentioned by RW9, it should be TITLEATTRS and VALUEATTRS, and while I cannot test it, I seem to recall this was not available with SAS 9.2.
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!
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.