🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-29-2020 10:27 PM
(2206 views)
Hello,
I'm using monthly data for 16 years. When I use the command SGPLOT. The horizontal axis is very crowded and cannot be read. Is there any way to make the horizontal axis readable?
ThankYou.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
proc sgplot data=sashelp.air ;
series x=date y=air ;
xaxis fitpolicy=thin;
run;
7 REPLIES 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
proc sgplot data=sashelp.air ;
series x=date y=air ;
xaxis fitpolicy=thin;
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can I ask one more question about SGPLOT? If I'd like to show only January of each year on the X-Axis, how could I do that?
Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
proc sgplot data=sashelp.air ;
series x=date y=air ;
xaxis fitpolicy=thin values=('01jan1950'd to '01jan1958'd by year)
valuesformat=date9.;
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You might also want to examine what happens if change the FORMAT for your YEAR variable. Such as
proc sgplot data=sashelp.air ; series x=date y=air ; format date year4.; run; /* or */ proc sgplot data=sashelp.air ; series x=date y=air ; format date yyq6. ; run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank You.