I am overlaying some plots (vbar and 2 scatters) on an sgplot statement but each overlay adds extra space between the 0 mark on the y axis and my x axis. How can I prevent this?
proc sgplot data=dat noautolegend noborder;
vbarparm category=sex response=median;
scatter x=sex y=median/ yerrorupper=quartile3 markerattrs=(size=0);
scatter x=sex y=mylabel / markerattrs=(symbol=asterisk);
yaxis values=(0 to 100 by 10);
xaxis display=(nolabel) valueattrs=(size=12pt);
run;
yaxis offsetmin=0.
Each plot type requests the preferred offset it needs. Scatter plot wants preferred offset of the size of the marker. So, adding a scatter layer will increase offsets by the size of the marker.
Can you show us a screen dump of what you mean?
yaxis offsetmin=0.
Each plot type requests the preferred offset it needs. Scatter plot wants preferred offset of the size of the marker. So, adding a scatter layer will increase offsets by the size of the marker.
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.