BookmarkSubscribeRSS Feed
paddyb
Quartz | Level 8

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

6 REPLIES 6
paddyb
Quartz | Level 8

any help is appreciated

ballardw
Super User

Start by showing your current Proc Template code, example data and an example of Proc Sgrender to display a chart.

 

paddyb
Quartz | Level 8

Thanks. I attached proc template code with sgrender and the data

paddyb
Quartz | Level 8

any suggestions please on this?

DanH_sas
SAS Super FREQ

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?

paddyb
Quartz | Level 8

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. 

paddyb_0-1715378419917.png

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 845 views
  • 1 like
  • 3 in conversation