![proc sgplot rename x axis proc sgplot rename x axis](https://blogs.sas.com/content/iml/files/2011/03/airlinemean.png)
Seriesplot x='date'n y='unemployment_rate_15_24'n / primary=true lineattrs=( color=cx963634 pattern=1 thickness=2) legendlabel="Youth (15-24 years) unemployment rate" NAME="SERIES" X2axisopts=(display=(ticks line) type=auto) Yaxisopts=(label=" " type=linear linearopts=(tickvaluelist=(0 2 4 6 8 10 12 14 16 18) viewmin=0 viewmax=18 )) Here's the equiavalent code written in GTL: I've also tried to use the Graph Template Language in SAS. Label unemployment_rate_15_ = "Overall (15+ years) unemployment rate" Label unemployment_rate_15_24 = "Youth (15-24 years) unemployment rate" Keylegend / location = inside position = topright Yaxis label = ' ' values = (0 to 18 by 2) Xaxis type=time fitpolicy=rotatethin notimesplit interval=year offsetmax=0 label = ' ' values = ("28FEB1995"d to "28FEB2015"d by year) Series x = date y = unemployment_rate_15_ / lineattrs = (color = CX538DD5 thickness = 2 pattern=solid) Series x = date y = unemployment_rate_15_24 / lineattrs = (color = CX963634 thickness = 2 pattern=solid)
![proc sgplot rename x axis proc sgplot rename x axis](https://blogs.sas.com/content/iml/files/2020/04/refline4-300x225.png)
情景應用程序代碼: ods pdf style = custom file='' Is it possible to rotate the x-axis labels in SAS SGPLOT so that they are perpendicular (at 90 degrees to x-axis)? The fitpolicy option rotates 45 degrees, but this is not exactly what I need.