Pie charts display the proportional size of numeric values by constructing a "pie" with slices sized based on the numeric values. The data may consist of either slice sizes, or values that will be tabulated to produce counts used as the size of the slices.
To generate a pie chart
Choose Graph One Variable
Pie Chart. The dialog shown below appears.
Data page
In the Pie Chart dialog, the Data page has the following options:
Data
Data Set
Select a data set from the dropdown list or type the name of a data set. You can also type into the Data Set edit field any expression that evaluates to a data set.
Enter an S-PLUS expression that identifies the rows to use in the analysis. To use all the rows in the data set, leave this field blank.
Variables
Value
Specify the column of values to use in the density.
Conditioning
Select the columns specifying conditioning values.
Save Graph Object
Enter the name for the object in which to save the results of the analysis.
Plot page
In the Pie Chart dialog, the Plot page has the following options:
Labels
Include Legend
Check this to include a legend indicating the slice labels and colors.
Include Slice Labels
Check this to include a text label on each slice.
Rotate Labels
Check this to rotate the slice labels.
Label Column
Specify a column containing slice labels. If this is not specified and "Tabulate Values" is unselected, row names will be used as labels. If "Tabulate Values" is selected, the names of the tabulated values will be used as labels.
Explode Slices
Slices to Explode
Specify whether to explode "None", "All", or "Specified" slices.
Slice Numbers
Specify the numbers of the slices to explode. These numbers correspond to the order of the slices in the legend.
Titles page
In the Pie Chart dialog, the Titles page has the following options:
Titles
Main Title
Specify a main title to add on the top of the page.
Subtitle
Specify a subtitle to add on the bottom of the page.
Labels
X Axis Label
Specify a label for the x-axis.
Y Axis Label
Specify a label for the y-axis.
Multipanel page
In the Pie Chart dialog, the Multipanel page has the following options:
Layout
Number of Columns/Rows/Pages Control the layout of the panels by specifying the number of columns, rows and pages.
Panel Order Choose from Graph Order or Table Order. Graph Order begins drawing panels in the bottom left corner of the graph, to the right and up. Table Order begins drawing panels in the upper left corner and continues right.
Include Strip Labels Check this to include strip labels on panels.
Continuous Conditioning
Number of Panels If the data are continuous, the number of panels is determined by the number specified in this field.
Overlap Fraction Create overlapping intervals by specifying the fraction of data points that are shared across two panels.
Interval Type Choose from Equal Counts or Equal Ranges. Equal Counts places an equal number of data points in each plot. Equal Ranges makes the interval widths all equal.