BookmarkSubscribeRSS Feed
Fred_Gavin
Calcite | Level 5
I use the following codes to generate the similar plot for the meta analysis

http://support.sas.com/kb/35/143.html

Now What if I only want to change "Overall" to bold ?

the "Overall" is in the statement of

scatterplot x=overallvalue y=overall / .....
So the overall in that plot seems a tick value. however there is no option such as textattrs ...

Any help? Thank you very much
1 REPLY 1
Jay54
Meteorite | Level 14
This graph is a LAYOUT LATTICE of 5 columns.
- The first column is a SCATTERPLOT showing just the axis.,
- The second column contains the BOXPLOT
- Last three columns are scatter plots with MARKERCHAR

You cannot change just one tick value of the axis, to make it bold. However, you could replace the first column with a SCATTERPLOT using MARKERCHAR to simulate the axis. You can split the column "Study2" in to two columns, 'A' having the observation "Overall" only, other being missing. The other column 'B' will have all other observations. Now, use two separeate SCATTERPLOT statements in first column, one each with these new columns 'A' & 'B'. For the scatter plot with column 'A', set the MARKERCHARACTERATTRS=(size=10, weight=bold) to just make that one value stand out.

Here is the template code for the first column. The original scatterplot statement is commented out. You have to build the new columns study2a and study2b.:

layout overlay / walldisplay=none border=false
y2axisopts=(reverse=true type=discrete display=none)
xaxisopts=(display=none offsetmin=0 offsetmax=0);
entry halign=left " Study" / textattrs=GraphLabelText location=outside valign=top;
scatterplot y=Study2 x=constant / markercharacter=study2b yaxis=y2;
scatterplot y=Study2 x=constant / markercharacter=study2a yaxis=y2
markercharacterattrs=(size=10pt weight=bold);
/* scatterplot y=Study2 x=constant / markercharacter=study2 yaxis=y2;*/
endlayout;

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
  • 1 reply
  • 625 views
  • 0 likes
  • 2 in conversation