BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
shanzha
Calcite | Level 5

Hi~

Hi, first time poster form down under.

Love the site - its been very useful already - thanks all.

I have created a survival curve using proc lifetest. 

 

ods graphics/noborder;
proc lifetest data=sashelp.BMT
              plots=survival(cb=hw atrisk(maxlen=13));
   time T * Status(0);
   strata Group;
run;

PFS生存分析9.png

how can i remove the top and right hand axis 'frames' so that only the two axis lines are left.

Does anybody know how I might do this?

 

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @shanzha and welcome to the SAS Support Communities!

 

In the documentation "ODS Graphics Template Modification" there is an Example 22.4 Customizing Axes and Reference Lines, which (among other things) explains "how you can change the style so that a frame is not shown:"

proc template;
   define style noframe;
      parent=styles.listing; /* <-- enter your preferred style here */
      style graphwalls from graphwalls / frameborder=off;
   end;
run;

ods listing style=noframe;

(So, you would insert the above code with or without modifications before yours.)

 

The original example uses styles.htmlblue as the "parent" style. I used styles.listing in order to maintain the other characteristics of my default graph. You may want to enter your current style (not sure what its name is) and use your preferred ODS destination (e.g., ods html instead of ods listing).

 

View solution in original post

2 REPLIES 2
FreelanceReinh
Jade | Level 19

Hi @shanzha and welcome to the SAS Support Communities!

 

In the documentation "ODS Graphics Template Modification" there is an Example 22.4 Customizing Axes and Reference Lines, which (among other things) explains "how you can change the style so that a frame is not shown:"

proc template;
   define style noframe;
      parent=styles.listing; /* <-- enter your preferred style here */
      style graphwalls from graphwalls / frameborder=off;
   end;
run;

ods listing style=noframe;

(So, you would insert the above code with or without modifications before yours.)

 

The original example uses styles.htmlblue as the "parent" style. I used styles.listing in order to maintain the other characteristics of my default graph. You may want to enter your current style (not sure what its name is) and use your preferred ODS destination (e.g., ods html instead of ods listing).

 

shanzha
Calcite | Level 5

thank you so much,the problem is resolved

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
  • 2 replies
  • 556 views
  • 1 like
  • 2 in conversation