Hi, i need to create this graphic but I can't figure out how to keep the lines continuous with the break in the y-axis
Here is my mock:
But here is a snip of what I am getting with my code. Any help is greatly appreciated!!
Here is my code.
proc sgplot data=all&pcode NOAUTOLEGEND ;
series x=avisitn y=aval / group=usubjid /*grouplc=trt01p*/ name='grouping' markers markerattrs=(size=10pt symbol=trianglefilled);
keylegend 'grouping' / type=linecolor;
xaxis label="Days after HCT" values=(0 28 56 90) valuesdisplay= ('0' '28' '56' '90');
yaxis label="&yax" ranges=(0-10 80-max) values=(0 to 100 by 10);
styleattrs datalinepatterns=(solid solid) ;
run;
Having a "continuous" line is misleading.
The X value for Y=70 is not 5 as the first graph implies, but 25 as correctly reported by the second graph.
What would be the benefit of removing 20-odd days on an axis that displays 200 days?
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.