Hi
I am new to proc template .
1. I am displaying bar value at the top of bar using barlabel=true. How to display the value at the center of the bar instead of top?
2. Also, how to wrap x axis value. text variable have one value very long
3. what option in proc template i can use to display P value at the top.
Thanks in advance
any help is appreciated
Start by showing your current Proc Template code, example data and an example of Proc Sgrender to display a chart.
Thanks. I attached proc template code with sgrender and the data
any suggestions please on this?
1. Use SEGMENTLABEL=true instead of BARLABEL=true.
2. Set DISCRETEOPTS=(tickvaluefitpolicy=split) in your XAXISOPTS and see if you get what you want.
3. Is this P-value pass into the graph template?
Thank you so much. SEGMENTLABEL=TRUE works to show label at the center of the bar. I have error bar in the fig so trying to put that values below error bar. Any suggestion?
I used drawtext option in proc template to display P value which is passed thru macro variable.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.