![]() ![]() It is not much use if you can’t get data into it. Vbar Product / group=Region groupdisplay=Stack name='Bar' Now let’s try doing via code, use the following code: proc sgplot data=SASHELP.SHOES Notice we now have two dimensions Product and Region. ![]() Go back to the Data tab and add Region to Group Variable – go to Options>Bar Details>Apply bar Color and pick a new colorĪnd now it is red (or whatever color you chose) Hit the little running man and your chart will appear in the Results Select Product – notice how the code automatically fills in for you now. The only one bar charts require is Category variable. Select the browse buttonĮxpand SASHELP (a collection of data sets that came with SAS) In the new window pane that opens, we need to add Data. There are two ways you can go about it: Code or work with the menus provided. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |