California Transit Payments
1 Setting up R Packages
1.1 Plot Fonts and Theme
Use _setup.qmd to set these up.
2 Introduction
This dataset is the result of a research study on payment options for people using public transit in California.
The dataset is available on Dataset Dryad:
Pike, Susan (2022). Transit payment preferences of unbanked passengers. Dataset Dryad. https://doi.org/10.25338/B8R04T
And a brief 2-pager on the research methodology is here.
Yes, peasants, you should read such stuff from other very different domains!
3 Read the Data
4 Data Dictionary
NoteQuantitative Variables
Write in.
NoteQualitative Variables
Write in.
NoteObservations
Write in.
5 Data Munging
Munged Data
6 Summarize and Prepare the Data
Let’s label the data variables…
| Name | CalPayment2 |
| Number of rows | 204 |
| Number of columns | 5 |
| _______________________ | |
| Column type frequency: | |
| numeric | 5 |
| ________________________ | |
| Group variables | None |
Variable type: numeric
| skim_variable | n_missing | complete_rate | mean | sd | p0 | p25 | p50 | p75 | p100 | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| phone.wifi | 0 | 1 | 1.45 | 0.50 | 1 | 1 | 1 | 2 | 2 | ▇▁▁▁▆ |
| phone.money | 0 | 1 | 1.32 | 0.47 | 1 | 1 | 1 | 2 | 2 | ▇▁▁▁▃ |
| phone.identity | 0 | 1 | 1.32 | 0.47 | 1 | 1 | 1 | 2 | 2 | ▇▁▁▁▃ |
| phone.fees | 0 | 1 | 1.29 | 0.45 | 1 | 1 | 1 | 2 | 2 | ▇▁▁▁▃ |
| phone.balance | 0 | 1 | 1.29 | 0.46 | 1 | 1 | 1 | 2 | 2 | ▇▁▁▁▃ |
Labelled Data
7 Plot the Data
8 Task and Discussion
Complete the Data Dictionary. Select and Transform the variables as shown. Create the graph shown below and discuss the following questions:
- Identify the type of charts
- Identify the variables used for various geometrical aspects (x, y, fill…). Name the variables appropriately.
- What activity might have been carried out to obtain the data graphed here? Provide some details.
- What would be your recommendation to the Transport Company?
- To the Phone Companies?

