FAQ/barpercent - CBU statistics Wiki

You can't save spelling words.

Clear message
location: FAQ / barpercent

How do I produce an interactive bar chart of percentages in SPSS?

Interactive bar charts will plot either counts (default) or percentages for each group or groups, represented by bars or clusters of bars.

They can either be run from the menu or using syntax. The syntax below will place counts on the y-axis for bars specified by the variable aq1, on the x-axis.

IGRAPH /VIEWNAME='Bar Chart' /X1 = VAR(aq1) TYPE = SCALE /Y = $count
 /COORDINATE = VERTICAL  /TITLE='Distribution of High Prestige Probabilities'
 /X1LENGTH=3.0 /YLENGTH=3.0 /X2LENGTH=3.0 /CHARTLOOK='NONE' /BAR KEY=OFF SHAPE
  = RECTANGLE BASELINE = AUTO.
EXE.

Replacing $count by $pct produces percentages on the y axis for each value of aq1 denoted by bars on the x-axis.

None: FAQ/barpercent (last edited 2013-03-08 10:17:56 by localhost)