BookmarkSubscribeRSS Feed
mlogan
Lapis Lazuli | Level 10

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,

1 REPLY 1
Reeza
Super User

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;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 863 views
  • 0 likes
  • 2 in conversation