Hi
I am trying to use proc sgplot to draw an overlay two graphs using the group option and also draw a refline using the the date xaxis. The output does not show the refline and the xaxis values are too clustered
The data set is attached and the SAS-Code used is as follows:
proc sgplot data=help.help ;
vline Date / response=Numeric_entry group=area groupdisplay=cluster;
xaxis interval=month label='Expected_Date' LABELATTRS=(weight=bold size=12)
VALUEATTRS=(family=arial size=10 style=normal weight=normal );
refline '31mar2024'd / axis=x label=('Expected_Date') lineattrs=(color=red pattern=dash)
labelattrs=(size=12) labelloc=inside;
title1 j=c "Comparison " bold;
run;
proc sgplot data=x.help ;
vline Date / response=Numeric_entry group=area groupdisplay=cluster;
xaxis interval=month type=time label='Expected_Date' LABELATTRS=(weight=bold size=12)
VALUEATTRS=(family=arial size=10 style=normal weight=normal );
refline '31mar2024'd / axis=x label=('Expected_Date') lineattrs=(color=red pattern=dash)
labelattrs=(size=12) labelloc=inside;
title1 j=c "Comparison " bold;
run;
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →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.