1.) How can I control the display of x-axis groups. For example if I want to display in this order - Sedan, Wagon, Truck, Sports, SUV, Hybrid
There are multiple ways to control the category order on the x-axis. Default for SGPLOT is ascending alphabetical sort. You can sort the data in any way you want and request Data order by setting DISCRETEORDER=data on the XAXIS statement.
2.) Is there any workaround if I do not want to use journal2 style.
I believe you can use any style, as long as you enable the fillpatterns and supply the patterns for the style, if they are missing. Journal2 and Journal3 already include fill patterns in the style. Others do not, but you can now provide them by using the STYLEATTRS DATAFILLPATTERNS (9.4M5). Also, if using HTML, remember to change the ATTRPRIORITY=none. Instead, you can use use JOURNAL3 and provide colors in the STYLEATTRS DATACOLORS (9.4M0) list.
ods graphics / attrpriority=none;
proc sgplot data=sashelp.cars;
styleattrs datafillpatterns=(l1 x1 r1);
vbar type / response=mpg_city stat=mean group=origin groupdisplay=cluster fill fillpattern;
run;
... View more