BookmarkSubscribeRSS Feed
dtchoi86
Fluorite | Level 6

Is there a way to align one of the columns to the right?

CODE:

layout overlay / HALIGN=RIGHT xaxisopts=(display=none)

yaxisopts=(reverse=true display=none) walldisplay=none;

referenceline y=ref / lineattrs=(thickness=15 color=_color);

scatterplot y=subgroups x=zero / markercharacter=drug1

markercharacterattrs=graphvaluetext;

endlayout;

I tried added HALIGN=RIGHT, and it still looks like this:

Thank you for all the help!

8 REPLIES 8
Steelers_In_DC
Barite | Level 11

I'm not sure if this will work but try just=right or just=r.

dtchoi86
Fluorite | Level 6

Just tried.  Still centered.

Jay54
Meteorite | Level 14

With SAS 9.3 you can use DataLabelPosition on the MarkerChar to align your data.

With SAS 9.4, you can use the Axis Table with many options.

Note, the HALIGN=RIGHT is for alignment of this layout itself inside the parent layout, and not for alignment of the text in a column.

dtchoi86
Fluorite | Level 6

Sorry to ask, but do you have an example?

Jay54
Meteorite | Level 14

What SAS release are you using?  I an not sure what I can suggest with SAS 9.2.

Some Forest Plot examples are here:  http://blogs.sas.com/content/graphicallyspeaking/?s=forest+plot

dtchoi86
Fluorite | Level 6

I'm currently using 9.3. TY

Jay54
Meteorite | Level 14

The link above shows you a full example of a Forest Plot using SAS 9.3.  Go to bottom of article and click on link to see full program.

You can use a ScatterPlot with DataLabel to show the values.  Set DataLabelPosition to left or right and set marker size =0. 

You can also use HighLow plot with HighLabel or LowLabel to display the values. Program above uses HighLow plot.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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