Hi,
I would like to know whether a function similar to splithcar
for axis values would exist to split the axis label.
In the example, it would mean to have on the first line Example:
and on the second lien to split
.
proc sgplot data=sashelp.class noborder;
vbar sex / missing;
xaxis label = 'Example: to split'
labelpos =right;
run;
Two options, your mileage will vary based on your destination:
https://stats.idre.ucla.edu/sas/code/generating-multiline-axis-labels-in-sas-proc-sgplot/
This will depend on your version, but if you have the latest, use the SPLITPOLICY options.
If you have an older version, try this approach:
@xxformat_com wrote:
Hi,
I would like to know whether a function similar to
splithcar
for axis values would exist to split the axis label.
In the example, it would mean to have on the first line
Example:
and on the second liento split
.
proc sgplot data=sashelp.class noborder; vbar sex / missing; xaxis label = 'Example: to split' labelpos =right; run;
Two options, your mileage will vary based on your destination:
https://stats.idre.ucla.edu/sas/code/generating-multiline-axis-labels-in-sas-proc-sgplot/
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!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.