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

Attribute

Permalink:

Author: T. Judson

Date: 19 Jul 2017 10:48

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License