BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
imstrizn
Calcite | Level 5

hello guys, this is my first time writing a program and using SAS, so I need a help.

I will create GDP trends graph 2000-2022, but the Y-axis scale just follows the GDP point.
I wanna adjust Y-Axis (0-1400 interval 100) and the X-axis followed by every single year (not every 10 years). 

 

%%SASK
proc sgplot data=gdpIndonesia;
title "Indonesia Nominal GDP Trends 2000-2022";
series x=Year y=GDP_Nominal/markers curvelabel curvelabelattrs=(size=12pt)
curvelabelpos=max curvelabelloc=outside
lineattrs=(thickness=2pt) markers markerattrs=(size=6)
datalabel datalabelattrs=(size=10pt);

yaxis label='Nominal GDP (in billions USD)';

footnote j=L "GDP Deflator base 2015" ;
footnote2 j=L " " ;
run;

1 ACCEPTED SOLUTION
1 REPLY 1

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 399 views
  • 2 likes
  • 2 in conversation