Data visualization with SAS programming

Drop display of tickvalues on discrete x-axis

Reply
Contributor
Posts: 24

Drop display of tickvalues on discrete x-axis

[ Edited ]

Hello,

 

I have this in my code--

 

proc template;
define statgraph sgplot;
dynamic _ticklist_;
begingraph /;
layout overlay / yaxisopts=( type=linear linearopts=( viewmin=&min. viewmax=&max. )) xaxisopts=(discreteopts=(tickvaluelist=(&all.) tickvaluefitpolicy=rotatethin));

...........

The xaxisopts helps me with this.

 

axis.PNG

I want all the values plotted but display only some of them. Like 200603 200606 etc.

 

How can i have that?

Super Contributor
Posts: 483

Re: Drop display of tickvalues on discrete x-axis

Specify the ticks you want listed in the 

 

tickvaluelist=()

part. This documentation on modifying the axes is probably helpful.

 

https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_templt_a000...

Contributor
Posts: 24

Re: Drop display of tickvalues on discrete x-axis

Thank You for helping me here.

 

But I am already using tickvaluelist=()

 

tickvaluelist=(&all.)

 

Grand Advisor
Posts: 10,052

Re: Drop display of tickvalues on discrete x-axis

[ Edited ]

ArpitSharma wrote:

Thank You for helping me here.

 

But I am already using tickvaluelist=()

 

tickvaluelist=(&all.)

 


Then make sure that the &all value only has the ones that you want tickmarks for.

 

I have found that horizontal box plots often work better for large numbers of boxes.

SAS Super FREQ
Posts: 1,061

Re: Drop display of tickvalues on discrete x-axis

Why not use a date format?

Ask a Question
Discussion stats
  • 4 replies
  • 79 views
  • 0 likes
  • 4 in conversation