Data - Bar Chart - Function of a Variable
main topic
 

To chart a function of a variable, you need one or more columns of numeric or date/time data and one to four corresponding categorical variables. For Multiple Y's - Cluster and Multiple Y's - Stack, all columns (graph variables and grouping variables) must be of equal length. Each row of your data should represent a single observation. If your data are summarized into a table, see Bar Chart - Values from a Table instead.

More

For other data options (subsetting, using frequency columns, and handling of missing data), see Data Options Overview. To change the display order for text categories, see Ordering text categories.

Examples

One Y

Data

Color

Density

Length

Blue

Hi

3.5

Red

Hi

4.2

Blue

Lo

2.7

Red

Lo

3.5

Blue

Lo

2.9

Blue

Hi

1.0

....

 

Simple

Cluster

Stack

Mean of Length by Color

Mean of Length by Color and Density

Multiple Y's

Data

Density

Length

Width

Hi

3.5

2.8

Hi

4.2

3.2

Lo

2.7

3.0

Lo

3.5

2.6

Lo

2.9

1.7

Hi

1.0

.85

....

Simple

Cluster

Stack

Mean of Length and Width

Mean of Length and Width by Density