Data visualization with SAS programming

Formatting x axis

Reply
Contributor
Posts: 41

Formatting x axis

 

I am creating a box plot with discrete x axis. I need to apply format to the x-axis value.

How can I achieve this ? 

Super User
Posts: 19,058

Re: Formatting x axis

Did you try formatting the value?

 

format x_axis_variable myformat.;
Contributor
Posts: 41

Re: Formatting x axis

No I mean what options to use within proc template to apply format to x-axis if x axis is discrete. 

Super User
Posts: 19,058

Re: Formatting x axis


Leo9 wrote:

No I mean what options to use within proc template to apply format to x-axis if x axis is discrete. 


Well, how about you explain a little more about what you're trying to accomplish?And what you've tried so far and what isn't working.

I assumed you were using SGPLOT  or BOXPLOT.

Super User
Posts: 11,114

Re: Formatting x axis

FORMAT is one of the statements supported by any display procedure.

 

If you are using a graph template the easiest thing to test would be to add the

 

Format xaxisvariable customformat. ; to the SGRENDER procedure call.

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