08-09-2014 04:03 PM
08-11-2014 09:32 AM
The code I have been using with no luck is very similar to sanjay's response.
data y72 y13; set nototals
year=72; totalseed=Dc1_1972; output y72;
year13; totalseed=Dc1_2013, ouput y13;
vbar year / group=year groupdisplay=cluster response=totalseed;
this just gets the one group (Dc1) garphed when I want DC1, DC2 and DC3 all on the same graph
08-11-2014 10:19 AM
First - You are using the same variable (year) for both category and group. There is no distinct GROUP variable. Second, the graph will depend on your data. You need a column with DC1, DC2, etc. as values in the column, and this column should be provided as the GROUP role in the statement.
08-11-2014 08:43 AM
A smaller sample data with just what you need would be easier to work with. If you have SAS 9.3 or higher, you can use the following SGPLOT example. Substitute the appropriate data set, category, group and response variables. "Cluster" is a keyword you must use.
proc sgplot data=sashelp.cars;
vbar origin/ response=mpg_city group=type groupdisplay=cluster;