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

Hi,

 

Could someone help me how to set minimum and maximum values for a figure.

 

proc template;
  define statgraph viz;
  begingraph;
    annotate;
    layout lattice / columns=2 columnweights=(0.6 0.4);
    layout overlay / yaxisopts=(label='Cumulative Proportion of Patients')
      xaxisopts=(label="Change from Baseline in &endpointlabel.[1]" ) ;
        seriesplot x=&end y=viz / group=&var name='line';
        referenceline y=0.5 / curvelabel="Median" curvelabellocation=inside lineattrs=(color=red pattern=dash);
        referenceline x=0 / curvelabel="No Change" curvelabellocation=inside lineattrs=(color=black pattern=ShortDash);
        discretelegend 'line' / location=outside;
      endlayout;
      layout overlay / xaxisopts=(type=discrete label='Difference from No Change' 
                          display=(label)) ;
          blockplot x=cut block=diff / class=label display=(outline values label) 
                                              repeatedvalues=true;
      endlayout;
      endlayout;
  endgraph;
  end;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Values for which variable? In what role? 

Axis labels you can control with a TICKVALUELIST=(value1 value2 value3), Or VIEWMIN=minimumvalue and VIEWMAX=maximumvalue on an XAXISOPTS or YAXISOPTS statement.

View solution in original post

1 REPLY 1
ballardw
Super User

Values for which variable? In what role? 

Axis labels you can control with a TICKVALUELIST=(value1 value2 value3), Or VIEWMIN=minimumvalue and VIEWMAX=maximumvalue on an XAXISOPTS or YAXISOPTS statement.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

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.

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