Pie Charts
Let’s use technology to create a pie chart that visualizes the distribution of Chronotype for all [latex]253[/latex] students in the study.
video placement
[Guiding: “This will be your first time using this tool in an activity. Let’s see how it should look together. [display the tool, going through the steps below to create a pie chart.] ]
Go to the Describing and Exploring Categorical Data tool at https://dcmathpathways.shinyapps.io/EDA_categorical/
Step 1) Select the One Categorical Variable tab.
Step 2) Locate the dropdown under Enter Data and select From Textbook.
Step 3) Click on the dropdown menu for Data Set and choose Sleep Study – Lark vs. Owl.
Step 4) Scroll down to Additional Plots and select the Pie Chart option. The pie chart will appear below the bar graph.
question 4
Consider a hypothetical class of [latex]42[/latex] students, each of whom answered the question, “are you a lark, an owl, or neither?” Let’s suppose that [latex]12[/latex] responded that they were larks, [latex]20[/latex] that they were owls, and [latex]10[/latex] said they were neither a lark nor an owl.
video placement
[Guiding: “[First demonstrate using fake information for a few observations (say, n = 5 or 6, for simplicity)to create a frequency table, then display the tool, going through the steps below to enter the data from the frequency table. Also show that students may, alternatively, enter the data as “observations” by making the appropriate selection under “Enter Data” and then entering observations as “lark lark owl etc…] ]
Use the Describing and Exploring Categorical Data tool to create a pie graph for these data. Follow these steps:
Step 1) Select the One Categorical Variable tab.
Step 2) Locate the dropdown under Enter Data and select Frequency Table.
Step 3) Enter “3” for Number of Categories.
Step 4) In the box under Name of Variable, type Chronotype.
Step 5) Enter the labels for the 3 chronotypes and their respective numbers observed in the hypothetical class.
Step 6) Scroll down to locate Additional Plots and select Pie Chart.
question 5
question 6
Bar Graphs
Let’s use a bar graph to examine another of the variables from the sleep study Alcohol use.
video placement
[Guiding: [display the tool, going through the steps below to create a bar graph.] ]
In the Describing and Exploring Categorical Data tool, follow these steps:
Step 1) Select the One Categorical Variable tab.
Step 2) Under Enter Data choose From Textbook.
Step 3) Under Data Set, select Sleep Study – Alcohol Use.
Step 4) Under Options, check the Customize Order box to change the order of the bars to provide more meaning.
Step 5) Click in the box under Choose Order of Categories and the order should be abstain, light, moderate, heavy.
Step 6) Under Additional Plots select None.