Sorry if this is the wrong location. It's confusing to figure out which one is the correct forum, but I want to rename the y-axis of the plot that is produced by
proc plot; plot energy_weekday * temp = 'W' energy_weekend * temp = 'S' /overlay;
to "energy" (right now, the plot shows "energy_weekday" as the y-axis).
With any version of SAS since 9.1 I would be using Proc SGPLOT or SGPANEL for plots.
You should have the SASHELP.Class data set available to test the following code which produces two similar plots:
proc plot data=sashelp.class; plot weight*height /vpos=25 ; run; proc sgplot data=sashelp.class; scatter x=height y=weight/markerattrs=(color=blue) transparency=.5; run;
I used the transparency setting to make the colors in the SGPLOT output a bit transparent so when multiple values overlay that is shown by a more intense color fill instead of the letter B in the Plot result.
Sgplot adds multiple types of graphs, quite a bit more appearance options and will create pretty nice appearing output when sent to document formats like PDF and RTF.
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.