I have the SGPLOT code below. However, the datalinepatterns option could not work. The output plot lines are still all solid. Does any one know how to change the line style? I want two solid lines and two dot lines.
proc sgplot data=forplotfinal;
styleattrs datacontrastcolors=(blue red blue red) datalinepatterns=(solid dot solid dot);
series x=index_time y=stat/lineattrs=(thickness=4)group=group2;
scatter x=index_time y=cohort/ markerchar=remaining2 markercharattrs=(size=8 weight=bold) y2axis group=cohort;
xaxis values=(-12 to 12 by 2 );
yaxis values=(0 to 22500 by 2500) offsetmin=0.2 min=0;
y2axis offsetmax=0.9 display=none min=1 max=2;
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.