Sas 简明教程
SAS - Bar Charts
A bar chart represents data in rectangular bars with length of the bar proportional to the value of the variable. SAS uses the procedure PROC SGPLOT to create bar charts. We can draw both simple and stacked bars in the bar chart. In bar chart each of the bars can be given different colors.
Syntax
创建柱状图的基本 SAS 语法为:
PROC SGPLOT DATA = DATASET;
VBAR variables;
RUN;
-
DATASET − 是所用数据集的名称。
-
variables − 是用于绘制直方图的值。