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

Hi Folks, 

In my swimmer's plot, I have to show Day 1 on x-axis, however, specifying 1 to 210 by 30 make the following measurement points 31, 61, 91, 121 and 181. How to force Day 1 while the rest of the time points on x-axis show 30, 60, 90 and 180 instead?

 

PROC SGPLOT DATA=SWIMMER;
HIGHLOW Y=ORDER LOW=TRTSTDY HIGH=TRTENDY / LOWLABEL=SUBJID TYPE=BAR;
XAXIS LABEL='Study Day' VALUES=(1 TO 210 BY 30);
RUN;

Cruise_1-1650040943122.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Which is exactly what you told it to do with "by 30" that adds 30 to each value (and since the 181+30 is greater than 210 does not display the calculated 211)

 

Try :

values = (1, 30 to 210 by 30)

 

View solution in original post

1 REPLY 1
ballardw
Super User

Which is exactly what you told it to do with "by 30" that adds 30 to each value (and since the 181+30 is greater than 210 does not display the calculated 211)

 

Try :

values = (1, 30 to 210 by 30)

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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