Hi,
Is there a trick to add a tick at both ends of the discrete axis beside using annotations?
proc sgplot data=sashelp.class;
vbarbasic age / response=height stat=mean;
xaxis tickstyle=inbetween;
run;
I am not quite sure what you mean by "add a tick at both ends".
If mean adding more tick mark values, such as 10 and 17 then a VALUES list on the XAXIS statement would work:
proc sgplot data=sashelp.class; vbarbasic age / response=height stat=mean; xaxis tickstyle=inbetween values=(10 to 17 by 1); run;
I've tried to represent them on my first graph with some yellow.
I see many graphs which are added the ticks before the first bar and after the last bar.
Here is another example:
Please add some description about where these "tick marks" are supposed to appear.
This image doesn't show any tick marks at all, much less "both ends", and would be created in SAS with a Group variable for the levels showing the colors and the Groupdisplay=cluster option.
@xxformat_com wrote:
I've tried to represent them on my first graph with some yellow.
I see many graphs which are added the ticks before the first bar and after the last bar.
Here is another example:
Why would you want any ticks on that axis at all?
What purpose do they serve?
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register 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.