My PROC SGPLOT produces a weird gap on the right. I tried to set MAX value but it does not work.My year quarter has YYQn6. format and the maximum value in my data is 20164( quarter 4 2016). I tried MAX option but it does not work
Here is my code:
proc sgplot data= input;
series x=yearquarter y=series1/lineattrs=(color=red pattern = solid) legendlabel= "Small firms";
series x=yearquarter y=series2/lineattrs=(color=blue pattern = thindot) legendlabel= "Medium firms";
series x=yearquarter y=series3/lineattrs=(color=black pattern = longdash) legendlabel= "Big firms";
series x=yearquarter y=liq_mean/lineattrs=(color=green pattern=dash thickness= 3) legendlabel= "All firms";
YAXIS LABEL = "metric";
XAXIS LABEL = 'Year' MAX='20DEC2014'D;
Here is what the graph looks like. the max value on the x-axis is 2020 but in the data, it is 2016
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.