Displaying Groups within a Bar - Numeric Variable - SAS Programming

The SUBGROUP= option can also be used with numeric variables.PROC CHART will automatically assign letters (A, B, C, etc.) to each unique value of the SUBGROUP= variable.To demonstrate this, if you want to see how many of each unit price went into the frequencies of the regional sales,you write:

Example

PROC CHART DATA=SALES;
TITLE 'Another Vertical Bar Chart with SUBGROUP= Option';
VBAR REGION / SUBGROUP-PUCE,'
RUN;

The output from this program is shown next:

Output from Example- Displaying Groups within a Bar — Numeric Variable

Output from Example- Displaying Groups within a Bar — Numeric Variable

Note that a letter was assigned to each unique value of PRICE in alphabetical order.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

SAS Programming Topics