BookmarkSubscribeRSS Feed
sfo
Quartz | Level 8 sfo
Quartz | Level 8

Hi,

I am trying to overlay boxplot and scatter plot using proc template in SAS 9.2 and have the following questions:-

1. How can I use log scale on y-axis?

2. How can I change font of axis label and values?

3. Can I split the box text for example if it is "Study (N=4)", I want to split Study and (N=4) in two separate lines.

4. Is there a way to remove the default border that is produced while creating the graph?

Thanks

3 REPLIES 3
ballardw
Super User

I don't have 9.2 available any more but look for:

1) YAXISOPTS , may have LOGOPTS to control log axis options and TYPE=LOG

2) If TICKVALUEATTRS is available that's probably best place for the values and LABELATTRS for the Label

3) "Box text"? Do you mean the Legend?

4) which border? around the whole procedure or around the graph area?

sfo
Quartz | Level 8 sfo
Quartz | Level 8

Thanks Ballardw for the reply

Capture.PNG

3) What I want is N=15 (as an example) under ASIA and N=20 under Euproe  etc ...in my code the x-axis is numbers while I am displaying the text Asia, Eurpoe etc by using it in a variable. In addition to this text I also want the N number under the each country. So I thought of creating another variable with text like "ASIA:(N=20)" and the use the split function on delimiter ":". Maybe there is a easier way.


4) by border I meant the outside border, around the whole procedure


Thanks

ballardw
Super User

39166 - Distribution of eye irritation shows one way to additional information along with axis though I haven't used it with boxplots and avoids having to try to "split" anything. One additional idea: instead of generating Text of (N=20) it may be easier to use a custom picture format to prefix a numeric value with (N= and end with ).

4) ods graphics / noborder ; before the procedure generating the output. Since this is an option it will stay set until set back to border.

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
  • 3 replies
  • 1158 views
  • 3 likes
  • 2 in conversation