BookmarkSubscribeRSS Feed
yapalparvi
Calcite | Level 5

Hi,

 

How do I change the title or remove the tile, x label and y labels of the graph obtained by this piece of code when I run the glimmix model?

 

Thanks,

Ramesh

PROC GLIMMIX DATA=work.BF_M123;                                                                                                         
  CLASS TYPE MONTH SEX ID;                                                                                                              
     MODEL BPCONTROL  = TYPE|MONTH SEX AGE   / DDFM=KR HTYPE= 3;                                                                        
      random id;                                                                                                                        
       RANDOM _RESIDUAL_            / TYPE=TOEP SUBJECT=ID;                                                                             
        LSMEANS TYPE                / ALPHA=.05 CL OM PDIFF;                                                                            
        LSMEANS MONTH               / ALPHA=.05 CL OM PDIFF;                                                                            
        LSMEANS SEX                 / ALPHA=.05 CL OM PDIFF;                                                                            
    *   LSMEANS TYPE*MONTH          / ALPHA=.05 CL OM PDIFF;                                                                            
        LSMEANS TYPE*MONTH          / SLICE=TYPE SLICEDIFF=TYPE               ALPHA=.05 CL OM PDIFF;                                    
        LSMEANS TYPE*MONTH          / SLICE=month SLICEDIFF=month             ALPHA=.05 CL OM PDIFF;                                    
        LSMEANS TYPE*MONTH          / PLOT=MEAN(SLICEBY=TYPE   JOIN CL) DIFFS ALPHA=.05 CL OM PDIFF adjust=bon;                         
        LSMEANS TYPE*MONTH          / PLOT=MEAN(SLICEBY=MONTH  JOIN CL) DIFFS ALPHA=.05 CL OM PDIFF;                                    
        LSMEANS TYPE*MONTH          / PLOT=MEAN(SLICEBY=TYPE   JOIN cl) DIFFS ALPHA=.05 CL OM PDIFF;                                    
        LSMEANS TYPE*MONTH          / PLOT=MEAN(SLICEBY=MONTH  JOIN cl) DIFFS ALPHA=.05 CL OM PDIFF;                                    
          label  bpcontrol= 'BP control Status';                                                                                        
          label  type     = 'Baseline or Followup';                                                                                     
        title               'Differences in Baseline and Followup means within each Month';                                             
                                                                                                                                        
RUN;                                                                                                                                    
                                                                                                                                        
ods graphics off; quit;                                                                                                                 
run;                                           

1 REPLY 1
Rick_SAS
SAS Super FREQ

If you just want to do this one time, the easiest way is to use the ODS Graphics Editor. See "Change a plot title by using the ODS Graphics Editor."

 

If you want to do this always, the answer is to edit the underlying template. This is described in the SAS/STAT documentation in the section titled "Modifying Graph Titles and Axis Labels."

SAS INNOVATE 2024

innovate-wordmarks-white-horiz.png

SAS is headed back to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team.

Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!

Submit your idea!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 883 views
  • 0 likes
  • 2 in conversation