Hi
There are a lot off error messages, too many to correct them all here, but you just have to work your way down from the top and check each error message, so for instance
202 ODs graphics on;
203 HEIGHT = 4in WIDTH = 3in;
------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
Gives a clear indication that height is not a vlaid statement in this context, looking at the syntax for ODS GRAPHICS will show that it should look like this:
ODs graphics on / HEIGHT = 4in WIDTH = 3in;
If you really need the thick values rotated the way you want, I suggest to use the VBARPARM and TEXT plot statements. It is less effort as compared to annotate, but then you have less control over the appearance.
/* create table for bar chart */
proc sql;
create table cars1 as
select
type
, mean(invoice) as invoice
from
sashelp.cars
group by
1
;
quit;
/*
* create table for text plot
* variable names must be named differently to the first table *
*/
proc sql;
create table cars2 as
select distinct
type as type2
, -1000 as value2
from
sashelp.cars
;
quit;
/* combine the two data sets into one */
data carsplot;
set cars1 cars2;
run;
/* make use of the vbarparm and text plot statements */
proc sgplot data=carsplot noborder noautolegend;
vbarparm category=type response=invoice;
text x=type2 y=value2 text=type2 /
rotate=45
position=bottomleft
textattrs=(SIZE=8pt)
;
xaxis display=none;
run;
However I would suggest to go with what is currently available.
Bruno
... View more