How To Create a Pie Chart

Example Data 244 238 1
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.


Select 1 (one) column from a contingency table. If you don't have your own dataset, you can choose the Gender and Politics or VADeaths curated datasets. If a contingency table is not chosen, you may get unexpected results.

A contingency table has columns like a regular dataset, but the first row contains row names that categorize and "split-up" the dataset. An example of a contingency table would be something like this:

F 762 468
M 484 477

This contingency table is take from the Gender and Politics dataset. You can get a preview by selecting the dataset from the Curated Data dropdown above.


This app shows the student how to create a pie chart from a contingency table by hand using a Picostat dataset.

A pie chart shows proportions of a sample or population. Each piece of a pie chart corresponds to some subset of the sample or population. In this case, we will use the contingency table rows to subset the sample.

See Also

Students may also want to view the app for creating a pie chart from count data.

Title Authored on Content type
R Dataset / Package MASS / birthwt March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Zelig / turnout March 9, 2018 - 1:06 PM Dataset
OpenIntro Statistics Dataset - helmet August 9, 2020 - 12:25 PM Dataset
R Dataset / Package boot / channing March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / Houses March 9, 2018 - 1:06 PM Dataset