BookmarkSubscribeRSS Feed
Coleen
Calcite | Level 5

I am trying to use axistable to label my rows in a forest plot as part of a lattice graph. Although I have a 38 character variable (outcome1) only the first 25 characters are showing on my plot. I have tried making the column wider but the text is still getting cut off. (I am using SAS 9.4 although I apparently do not have the latest maintenace release because some features that have been posted for maintenance 3 don't work).

 


    layout lattice / rows=3 columns=7 rowweights=(.42 .29 .29) columnweights=(0.3 0.3 0.07 0.07 0.12 0.07 0.07) rowgutter=0 columngutter=0;
 
 
    /* first column with row labels*/
    layout overlay / walldisplay=none xaxisopts=(display=none) yaxisopts=(reverse=true display=none OFFSETMAX=.15 LINEAROPTS=(VIEWMIN=.9 VIEWMAX=11.1));
      axistable y=y1 value=outcome1;
    endlayout;

3 REPLIES 3
ballardw
Super User

I suggest providing a small data step we can use to duplicate your issue (the long variable) , the full template code and an example of the Sgrender to execute.

 

Proc template has so many options that the full picture really is needed.

Also your ODS graphics options and possibly the ODS destination and it's options may play a part as well.

Coleen
Calcite | Level 5

So I made an "anonymous" version of my program - and it worked fine!  So I guess I now have a working program that I can revise back in steps until it "breaks".

 

Rick_SAS
SAS Super FREQ

Just look at the SYSVLONG macro variable to find the maintenance release. Submit

%put &SYSVLONG;

and then look at the SAS log.

 

For example, a value of 

9.04.01M2P110916 means SAS 9.4m2 (second maintenance)

9.04.01M3P110916 means SAS 9.4m3 (third maintenance)

etc

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 3 replies
  • 854 views
  • 0 likes
  • 3 in conversation