Pie Chart
Description
The following R command calculates a pie chart for the final exam grades in a statistics course.
To use R in a Sage cell, the language must be set to R. See https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst for details.
Sage Cell
Code
slices <- c(4, 10 , 37, 8, 1)
lbls <- c("A", "B", "C", "D", "F")
pie(slices, labels = lbls, main="Final Exam Grades for a Statistics Course")
Options
None
Tags
Primary Tags: Statistics: Exploratory data analysis/descriptive statistics
Secondary Tags: Exploratory data analysis/descriptive statistics: Graphical representations
Related Cells
- A stem-and-leaf plot with R
- Box plots with R
- Constructing Histograms with R
- Constructing Time Series Plots with R
Attribute
Permalink:
Author: T. Judson
Date: 19 Jul 2017 10:48
Submitted by: Tom Judson