BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I am using REG or some proc like LIFETEST

there is Plot option in lifetest

for example:

*/
proc lifetest data=a plots=(h,ls,s) /*plots=(s,ls,lls,h,p)*/ noprint /**/;
time t*r
strata c;
run;


the resulted plot is just ok for me, as i do not like the style of it. such as linestlye,icon, legend, symbles....

how can i change it?

Thank you.
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi,
How you change your plot will depend on whether you're using SAS 9.1.3 or SAS 9.2. Also, involved is whether you have ODS GRAPHICS ON/OFF around your procedure code or whether you are using the procedures without ODS GRAPHICS ON/OFF. (ODS GRAPHICS ON/OFF was experimental in SAS 9.1.3 and production in SAS 9.2)

If you are still using SAS 9.1.3, but are NOT using ODS GRAPHICS ON/OFF, then you would look to the procedure syntax for ways to improve the cosmetics of the graph. Some STAT procedures give color and font options. For example, PROC REG, if you look here, has some traditional graphics options that you would specify in procedure syntax:
http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_reg_sect017.htm
http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_reg_sect017.htm#statug....
(options include things like: LHREF and LLLINE for specifying line styles)

If you are using ODS GRAPHICS ON/OFF, then these procedure level style options would NOT be used, because graph production would be under the control of the GRAPH Template used with PROC REG, for example. The user's guide for ODS Statistical Graphics is here:
http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/odsgraph_toc.htm

and some papers:
http://www2.sas.com/proceedings/sugi30/183-30.pdf (SAS 9.1 paper)
http://www2.sas.com/proceedings/sugi31/192-31.pdf (SAS 9.2 paper)

For more information on Graph Templates, the information is relevant to SAS 9.2 -- if you are using SAS 9.1.3, you can still modify Graph Templates, but your method and syntax would be slightly different. Here are some 9.2 papers on Graph Templates:
http://support.sas.com/documentation/cdl/en/grstatug/61950/PDF/default/grstatug.pdf
http://support.sas.com/kb/24/529.html

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 556 views
  • 0 likes
  • 2 in conversation