Data visualization with SAS programming

Different formats for Y1 and Y2 axis labels

Reply
New Contributor
Posts: 3

Different formats for Y1 and Y2 axis labels

Is it possible to have two different formats for the Y1 and Y2 axis labels? For example, the Y1 axis labels might have a format of z5.3 and the Y2 axis labels might have a format of 3.1. I can't seem to figure where, if possible, the two formats would be positioned.

Thanks,
Mike
SAS Employee
Posts: 977

Re: Different formats for Y1 and Y2 axis labels

The plot and plot2 axes should display the values using whatever format is assigned in the data set, or you can specify a format in the 'proc gplot' to over-ride that. Here is an example of the latter:

symbol1 v=dot i=join color=red;
symbol2 v=none i=needle color=blue;

proc gplot data=sashelp.stocks (where=(stock='IBM'));
format close dollar5.0;
format volume z10.;
plot close*date=1;
plot2 volume*date=2;
run;

(of course, with the limitation that device=java and device=activex might not support all the SAS formats, if you're using one of those devices)
Ask a Question
Discussion stats
  • 1 reply
  • 155 views
  • 0 likes
  • 2 in conversation