In the last movie, we looked at creating a bar chart for categorical variables.…It' s one of the most basic charts that you can possibly create in statistics.…In this movie, we're going to look at the closely related chart, the pie chart.…Now a pie chart is also used to…show a univariate distribution on a categorical variable.…And a pie chart is a very common method for showing things but,…as I'm going to show you, there's some certain problems with a pie chart.…And there are reasons…why you might want to avoid them and use bar charts instead.…Let's start by opening up the same data that we had in the previous one.…
We're going to make sure the datasets package is loaded, you can run this…if you need to, and then we're going to open up the data called chickwts.…I'm going to load that up.…And then we're going to create a table with the frequencies.…That's the format that we needed to make the pie charts and bar charts.…So I'm going to create it, called feeds, and I'm going to use the function…table to go to the dataset chickwts, and pull out the table feed.…
Author
Released
9/26/2013- Installing R on your computer
- Using the built-in datasets
- Importing data
- Creating bar and pie charts for categorical variables
- Creating histograms and box plots for quantitative variables
- Calculating frequencies and descriptives
- Transforming variables
- Coding missing data
- Analyzing by subgroups
- Creating charts for associations
- Calculating correlations
- Creating charts and statistics for three or more variables
- Creating crosstabs for categorical variables
Skill Level Intermediate
Duration
Views
Q: The R files within Chapters 01 to 10 don't appear to have any code in them. Where is the final code for each file?
A: Look in the "final" folder for each video. These folders contains the final R code written by the author.
Related Courses
-
Introduction
-
Welcome58s
-
-
1. Getting Started
-
Using RStudio4m 36s
-
Installing and managing packages11m 16s
-
Using built-in datasets in R5m 27s
-
Entering data manually4m 37s
-
Importing data8m 53s
-
Working with color in R10m 18s
-
2. Charts for One Variable
-
Overlaying plots7m 25s
-
Saving images5m 34s
-
Solution: Layering plots2m 22s
-
3. Statistics for One Variable
-
Calculating frequencies3m 33s
-
Calculating descriptives5m 43s
-
-
4. Modifying Data
-
Examining outliers6m 42s
-
Transforming variables9m 26s
-
Coding missing data6m 4s
-
-
5. Working with the Data File
-
Selecting cases5m 30s
-
Analyzing by subgroup3m 14s
-
Merging files5m 16s
-
-
6. Charts for Associations
-
Creating scatter plots5m 2s
-
7. Statistics for Associations
-
Calculating correlation3m 54s
-
Comparing proportions3m 34s
-
-
8. Charts for Three or More Variables
-
Creating 3D scatter plots5m 13s
-
9. Statistics for Three or More Variables
-
Conducting a cluster analysis14m 14s
-
Conclusion
-
Next steps3m 40s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Creating pie charts for categorical variables