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

 

Hello,

 

I am trying to fit approximately 38 visits on x-axis. I want to appear in increment of one like - 1,2, 3...etc.

I am using linear axis. By default the x-axis is not displaying visits in sequences by it is displaying visits in 

like - 1, 3, 5, 7 etc..I tried tickvaluesequence option but it is not working. Below is part of the code. It is series plot.

 Any sugguestions ?

 

layout overlay / xaxisopts = (label = "Study Weeks" linearopts = (tickvaluelist = ticks 
tickvaluesequence = ( start = -2 end = 36 increment = 1))
tickvalueattrs=(size=6pt)
labelattrs = (size=8pt))

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

I'm not sure of the plot types you're using based on the code snippit, but try removing the LINEAROPTS from your code and set TYPE=DISCRETE to see if that will give you what you want.

 

Hope it helps!

Dan

View solution in original post

2 REPLIES 2
DanH_sas
SAS Super FREQ

I'm not sure of the plot types you're using based on the code snippit, but try removing the LINEAROPTS from your code and set TYPE=DISCRETE to see if that will give you what you want.

 

Hope it helps!

Dan

howarder
Obsidian | Level 7

In your "linearopts" portion of the code, try adding "viewmin=-2 viewmax=36" before the tickvaluesequence.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 969 views
  • 0 likes
  • 3 in conversation