SAS 9.4 TS Level 1M2
So whenever I run an SGPLOT with a by statement it automatically inserts a second title -- how do I remove that second title?
Here's my code (be nice as I'm just learning the graphics package):
ods graphics on; ods listing style=DEFAULT image_dpi=300 gpath="FILE_LOCATION"; ods graphics / imagename="IMAGE_NAME"; PROC SGPLOT DATA=DATA_SET UNIFORM=SCALE; BY VAR1 VAR2; TITLE H=9pt 'TITLE: VAR1=#byval(VAR1) VAR2=#byval(VAR2)'; SCATTER X=X Y=Y / GROUP=ID MARKERATTRS=(SIZE=5) ; XAXIS DISPLAY=(NOLABEL) TYPE=TIME INTERVAL=MONTH MINOR VALUEATTRS=(size=7); YAXIS LABEL='LABEL' TYPE=LINEAR VALUES=(0 to 10 by 1) LABELATTRS=(size=8) VALUEATTRS=(size=7) valueshint; KEYLEGEND / BORDER POSITION=RIGHT LOCATION=OUTSIDE ACROSS=1 TITLE='ID' SORTORDER=ASCENDING titleattrs=(size=7) valueattrs=(size=6); RUN; ods graphics off;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.