Data visualization with SAS programming

Fitting all values on x-axis

Accepted Solution Solved
Reply
Contributor
Posts: 41
Accepted Solution

Fitting all values on x-axis

 

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))


Accepted Solutions
Solution
‎07-01-2016 04:05 PM
SAS Super FREQ
Posts: 925

Re: Fitting all values on x-axis

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


All Replies
Solution
‎07-01-2016 04:05 PM
SAS Super FREQ
Posts: 925

Re: Fitting all values on x-axis

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

Occasional Contributor
Posts: 18

Re: Fitting all values on x-axis

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

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 296 views
  • 0 likes
  • 3 in conversation