I have a question about proc sgplot. I created a graph which has the probability of an outcome by an x value, and then I added another x series to show the point where the maximum probability is attained. Here is my code:
proc sgplot data=ex dattrmap=attr1;
series x=x_value y=probability/ group=Group linattrs = (thickness=3px) attrid=Group;
series x=max y=probability/group=Group Datalabel=Max markers markerattrs=(symbol=circlefilled size=10px) attrid=Group;
The problem is that I cosmetically need the x axis to show only the values 1 to 5, but then for it in reality to go slightly over 5 to show the point where the probability reaches the maximum (5.10). The code above gives me the x-axis values 1 3 and 5, for some reason. I would like it to say 1 through 5, but still show the point 5.10 on the graph. Does anyone know how to do this?
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.