Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

gplot year as date

Reply
Regular Contributor
Posts: 218

gplot year as date

HI All,

I want to keep the year part in the X axis instead of the full date, can anyone tell me how.

Here is my code:

symbol1 color=blue interpol=join;

proc gplot data=sashelp.stocks;

plot volume*date / hminor=0;

run;

quit;

Thanks,

Super User
Posts: 19,851

Re: gplot year as date

Have you tried applying a format to the year variable?

symbol1 color=blue interpol=join;

proc gplot data=sashelp.stocks;

plot volume*date / hminor=0;

format date year4.;

run;

quit;

Ask a Question
Discussion stats
  • 1 reply
  • 252 views
  • 0 likes
  • 2 in conversation