 
In this video, you will
learn to create pie charts
using StatCrunch.
The data set I am
using is called
two categorical variables.
This is just a toy data set that
contains two columns of data.
However in this
video, I will focus
on the var1 column that contains
10 values-- the value of B
in four rows, and the
value of A in six rows.
Let's begin by creating a pie
chart for the var1 column.
To do so under the Graph menu,
choose Pie Chart With Data.
I'm going to select of var1
column and click Compute.
The resulting pie chart is
shown with a legend displaying
the values associated
with each color,
as well as the count and
percentage of each value.
So for example, the value
of A is represented in blue.
The count is six,
and it makes up
60% of the data values
for the var1 column.
StatCrunch allows the
user to display the count
and/or the percent in the
legend of their pie chart.
For this example, I'd like
to only show the percent.
To do so, under the Options
menu, I'm going to choose Edit.
This takes us back to
the original window
where we built our pie chart.
In this window,
StatCrunch allows the user
to customize their pie chart.
In the display box,
you'll notice both Count
and Percent of Total
are highlighted.
To deselect Count, you
need to hold down Command
on a Mac or Control on a PC.
Now, only Percent of
Total is highlighted.
When I Click Compute,
the pie chart's legend
only displays percent.
 
Also notice by default,
StatCrunch displays
the values in ascending
order, or in this case,
alphabetical order, so A is
at the top of the pie chart.
Also notice that StatCrunch
draws the first slice
of the pie at zero degrees
in trigonometric terms,
or at three o'clock.
We can change both
of these defaults
back under the Options menu.
 
In the Order By
box, you will notice
that it's set to default
to Value Ascending,
or in this case
alphabetical order.
Value Descending will
reverse this order.
Count Ascending and
Count Descending
will order the values
in the pie chart
by the frequency of the
values rather than the values
themselves.
For this example, I'm going
to choose Value Descending.
 
Also notice in the
Start Angle box,
it's defaulted to 0 degrees.
For this example, I'm going
to change it to 90 degrees
so that the first slice of
pie will begin at 12 o'clock.
We'll click Compute, and now
you can see the value of B
comes before the value
of A, and the first slice
begins at 12 o'clock.
StatCrunch also
provides the option
to combine values with
small relative frequency
into an other category.
Back under Options, you will
notice a box labeled Other
If Percent Less Than.
For this example, I'll enter 50.
This will group all
values less than 50%
into one other category.
I'll Click Compute,
and as you can see,
the B values are now
labeled as other.
Also, you will notice
that StatCrunch
has changed the order of
the values in the pie chart.
The other category will never
begin at the starting angle.
As you can see,
though, this is not
a great idea for
this data set, but it
shows how StatCrunch can create
this category if it is needed.
