Visualizing Data Distributions in R
Histograms, Bar Plots, and the Logic of Central Tendency
Bogdan G. Popescu
John Cabot University
Intro
Overview
Today, we’ll learn how to:
- Produce histograms to explore distributions
- Create bar plots from frequency tables
- Generate line plots to examine trends over time
Opening a File
Download the following datasets from Dropbox:
Opening a File
Now put them in your working directory
Place the files in a folder named “data” inside your “week4” directory
Creating a New Quarto Document
We will now create a new quarto document corresponding to week 4
The following are screenshots from week 2.
Simply replace “2” with “4”
Creating a New Quarto Document
Creating a New Quarto Document
Creating a New Quarto Document
Creating a New Quarto Document
Creating a New Quarto Document
Creating a New Quarto Document
Creating a New Quarto Document
Creating a New Quarto Document
![]()