{"id":30,"date":"2023-01-31T00:45:50","date_gmt":"2023-01-31T00:45:50","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/displaying-categorical-data-learn-it-4\/"},"modified":"2025-10-07T13:47:22","modified_gmt":"2025-10-07T13:47:22","slug":"displaying-categorical-data-learn-it-4","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/displaying-categorical-data-learn-it-4\/","title":{"raw":"Displaying Categorical Data: Learn It 4","rendered":"Displaying Categorical Data: Learn It 4"},"content":{"raw":"<h2>Pie Charts<\/h2>\r\n<p>Another common graph used for displaying the distribution of categorical data is a <strong>pie chart<\/strong>. Pie charts are a way to display categorical data when you want to compare parts of a whole.<\/p>\r\n<section class=\"textbox keyTakeaway\">\r\n<div>\r\n<h3>pie chart<\/h3>\r\n\r\nPie charts display data in a round graph split into \u201cpie pieces\u201d or \"wedges\" in a circle. <br \/>\r\n<br \/>\r\nEach piece represents the proportion of the quantity or frequency of individuals or items in each category. Basically, pie charts display the relative frequencies of your data set and all pieces should add to be [latex]100[\/latex]%.<\/div>\r\n<\/section>\r\n<p>A key is provided to identify the categories associated with each relative frequency. Pie charts are useful for visually comparing relative frequencies.<\/p>\r\n<h3>Sleep Study: Pie Charts<\/h3>\r\n<section class=\"textbox interact\">Use the Describing and Exploring Categorical Data tool to create a pie chart that visualizes the distribution of <em>Chronotype<\/em> for all 253 students in the study. Follow these steps:\r\n\r\n<p style=\"padding-left: 30px;\"><strong>STEP 1:<\/strong>\u00a0Select the \"One Categorical Variable\" tab.<\/p>\r\n<p style=\"padding-left: 30px;\"><strong>STEP 2:<\/strong> Locate the dropdown under \"Enter Data and select \"From Textbook.\"<\/p>\r\n<p style=\"padding-left: 30px;\"><strong>STEP 3:<\/strong>\u00a0Click on the dropdown menu for \"Data Set<strong>\"<\/strong> and choose \"Sleep Study \u2013 Lark vs. Owl.\"<\/p>\r\n<p style=\"padding-left: 30px;\"><strong>STEP 4:<\/strong> Scroll down to \"Additional Plots\" and select the \"Pie Chart\" option. The pie chart will appear below the bar graph.<\/p>\r\n<\/section>\r\n<p><iframe src=\"https:\/\/lumen-learning.shinyapps.io\/eda_categorical\/\" width=\"100%\" height=\"850\" frameborder=\"no\"><\/iframe> <br \/>\r\n[<a href=\"https:\/\/lumen-learning.shinyapps.io\/eda_categorical\/\" target=\"_blank\" rel=\"noopener\">Trouble viewing? Click to open in a new tab.<\/a>]<\/p>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]748[\/ohm2_question]<\/section>\r\n<section class=\"textbox interact\">Consider another categorical variable in the sleep study, <em>Anxiety Status<\/em>. [latex]56[\/latex] students reported Normal anxiety levels, [latex]181[\/latex] reported Moderate anxiety levels and [latex]16[\/latex] reported Severe anxiety levels. Use the statistical tool to construct a pie chart of the distribution of anxiety levels.\u00a0\r\n\r\n<p style=\"padding-left: 30px;\"><strong>STEP 1:<\/strong> Select the \"One Categorical Variable\" tab.<\/p>\r\n<p style=\"padding-left: 30px;\"><strong>STEP 2:<\/strong> Locate the dropdown under \"Enter Data\" and select \"Frequency Table.\"<\/p>\r\n<p style=\"padding-left: 30px;\"><strong>STEP 3:<\/strong> Enter \u201c3\u201d for \"Number of Categories.\"<\/p>\r\n<p style=\"padding-left: 30px;\"><strong>STEP 4:<\/strong> In the box under \"Name of Variable,\" type Anxiety Status.<\/p>\r\n<p style=\"padding-left: 30px;\"><strong>STEP 5:<\/strong> Enter the labels for the three anxiety levels and their respective numbers observed in the Sleep Study.<\/p>\r\n<p style=\"padding-left: 30px;\"><strong>STEP 6:<\/strong> Scroll down to locate \"Additional Plots\" and select \"Pie Chart.\"<\/p>\r\n<\/section>\r\n<p><iframe src=\"https:\/\/lumen-learning.shinyapps.io\/eda_categorical\/\" width=\"100%\" height=\"850\" frameborder=\"no\"><\/iframe><\/p>\r\n<p>[<a href=\"https:\/\/lumen-learning.shinyapps.io\/eda_categorical\/\" target=\"_blank\" rel=\"noopener\">Trouble viewing? Click to open in a new tab.<\/a>]<\/p>\r\n<section class=\"textbox tryIt\">[ohm2_question]2860[\/ohm2_question]<\/section>","rendered":"<h2>Pie Charts<\/h2>\n<p>Another common graph used for displaying the distribution of categorical data is a <strong>pie chart<\/strong>. Pie charts are a way to display categorical data when you want to compare parts of a whole.<\/p>\n<section class=\"textbox keyTakeaway\">\n<div>\n<h3>pie chart<\/h3>\n<p>Pie charts display data in a round graph split into \u201cpie pieces\u201d or &#8220;wedges&#8221; in a circle. <\/p>\n<p>Each piece represents the proportion of the quantity or frequency of individuals or items in each category. Basically, pie charts display the relative frequencies of your data set and all pieces should add to be [latex]100[\/latex]%.<\/p><\/div>\n<\/section>\n<p>A key is provided to identify the categories associated with each relative frequency. Pie charts are useful for visually comparing relative frequencies.<\/p>\n<h3>Sleep Study: Pie Charts<\/h3>\n<section class=\"textbox interact\">Use the Describing and Exploring Categorical Data tool to create a pie chart that visualizes the distribution of <em>Chronotype<\/em> for all 253 students in the study. Follow these steps:<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 1:<\/strong>\u00a0Select the &#8220;One Categorical Variable&#8221; tab.<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 2:<\/strong> Locate the dropdown under &#8220;Enter Data and select &#8220;From Textbook.&#8221;<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 3:<\/strong>\u00a0Click on the dropdown menu for &#8220;Data Set<strong>&#8220;<\/strong> and choose &#8220;Sleep Study \u2013 Lark vs. Owl.&#8221;<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 4:<\/strong> Scroll down to &#8220;Additional Plots&#8221; and select the &#8220;Pie Chart&#8221; option. The pie chart will appear below the bar graph.<\/p>\n<\/section>\n<p><iframe loading=\"lazy\" src=\"https:\/\/lumen-learning.shinyapps.io\/eda_categorical\/\" width=\"100%\" height=\"850\" frameborder=\"no\"><\/iframe> <br \/>\n[<a href=\"https:\/\/lumen-learning.shinyapps.io\/eda_categorical\/\" target=\"_blank\" rel=\"noopener\">Trouble viewing? Click to open in a new tab.<\/a>]<\/p>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm748\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=748&theme=lumen&iframe_resize_id=ohm748&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox interact\">Consider another categorical variable in the sleep study, <em>Anxiety Status<\/em>. [latex]56[\/latex] students reported Normal anxiety levels, [latex]181[\/latex] reported Moderate anxiety levels and [latex]16[\/latex] reported Severe anxiety levels. Use the statistical tool to construct a pie chart of the distribution of anxiety levels.\u00a0<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 1:<\/strong> Select the &#8220;One Categorical Variable&#8221; tab.<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 2:<\/strong> Locate the dropdown under &#8220;Enter Data&#8221; and select &#8220;Frequency Table.&#8221;<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 3:<\/strong> Enter \u201c3\u201d for &#8220;Number of Categories.&#8221;<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 4:<\/strong> In the box under &#8220;Name of Variable,&#8221; type Anxiety Status.<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 5:<\/strong> Enter the labels for the three anxiety levels and their respective numbers observed in the Sleep Study.<\/p>\n<p style=\"padding-left: 30px;\"><strong>STEP 6:<\/strong> Scroll down to locate &#8220;Additional Plots&#8221; and select &#8220;Pie Chart.&#8221;<\/p>\n<\/section>\n<p><iframe loading=\"lazy\" src=\"https:\/\/lumen-learning.shinyapps.io\/eda_categorical\/\" width=\"100%\" height=\"850\" frameborder=\"no\"><\/iframe><\/p>\n<p>[<a href=\"https:\/\/lumen-learning.shinyapps.io\/eda_categorical\/\" target=\"_blank\" rel=\"noopener\">Trouble viewing? Click to open in a new tab.<\/a>]<\/p>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm2860\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=2860&theme=lumen&iframe_resize_id=ohm2860&source=tnh&show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":6,"menu_order":8,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":20,"module-header":"learn_it","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/30"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/users\/6"}],"version-history":[{"count":30,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/30\/revisions"}],"predecessor-version":[{"id":7108,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/30\/revisions\/7108"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/parts\/20"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/30\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapter-type?post=30"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/contributor?post=30"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/license?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}