<br />
<b>Warning</b>:  Undefined variable $num in <b>/home/shroutdo/public_html/courses/wp-content/plugins/single-categories/single_categories.php</b> on line <b>126</b><br />
<br />
<b>Warning</b>:  Undefined variable $posts_num in <b>/home/shroutdo/public_html/courses/wp-content/plugins/single-categories/single_categories.php</b> on line <b>127</b><br />
<br />
<b>Warning</b>:  Undefined variable $num in <b>/home/shroutdo/public_html/courses/wp-content/plugins/single-categories/single_categories.php</b> on line <b>126</b><br />
<br />
<b>Warning</b>:  Undefined variable $posts_num in <b>/home/shroutdo/public_html/courses/wp-content/plugins/single-categories/single_categories.php</b> on line <b>127</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/shroutdo/public_html/courses/wp-content/plugins/single-categories/single_categories.php:126) in <b>/home/shroutdo/public_html/courses/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1902</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/shroutdo/public_html/courses/wp-content/plugins/single-categories/single_categories.php:126) in <b>/home/shroutdo/public_html/courses/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1902</b><br />
{"id":778,"date":"2018-11-11T19:03:40","date_gmt":"2018-11-11T19:03:40","guid":{"rendered":"http:\/\/courses.shroutdocs.org\/dcs104-fall2018\/?p=778"},"modified":"2018-11-11T19:11:14","modified_gmt":"2018-11-11T19:11:14","slug":"practice-exercise-6-data-visualization","status":"publish","type":"post","link":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/2018\/11\/11\/practice-exercise-6-data-visualization\/","title":{"rendered":"Practice Exercise # 6 &#8211; Data Visualization"},"content":{"rendered":"<p>This exercise brings together what we have learned about data visualization.\u00a0 You will be creating your own notebook from scratch, calling data, manipulating that data, and visualizing it.\u00a0\u00a0Please submit the\u00a0 notebook create via this Lyceum link (<a href=\"https:\/\/lyceum.bates.edu\/mod\/assign\/view.php?id=218449\">section A<\/a>) (<a href=\"https:\/\/lyceum.bates.edu\/mod\/assign\/view.php?id=218450\">section B<\/a>) by the start of class on November 27th<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<p><strong>Review Best Practices.\u00a0<\/strong>As a class, we came up with the following best-practices for data visualization.\u00a0 Read over them, and make sure that you have a good sense of what they would mean for your own visualizations:<\/p>\n<ul>\n<li>Acknowledge the source of your data<\/li>\n<li>Understand the story behind your data<\/li>\n<li>Understand what you\u2019re looking for<\/li>\n<li>Make sure the visualization is clear<\/li>\n<li>Consider your audience<\/li>\n<li>Good labels, axis titles, colors<\/li>\n<li>Use trend lines appropriately<\/li>\n<li>Make sure that your data is sufficient and representative data<\/li>\n<li>Makes sure your visualization is accessible<\/li>\n<li>Make sure your visualization is interactive (where appropriate)<\/li>\n<li>Makes sure that you use frameworks that your audience is familiar with<\/li>\n<\/ul>\n<p><strong>Set up<\/strong><\/p>\n<ol>\n<li>Create a new notebook.\u00a0 Name it PE6 (do not include your name).\u00a0 You will be downloading, zipping, and uploading this folder.<\/li>\n<li>Title your notebook. Make your first cell into a markdown cell (hit escape and then m) and then enter one hashtag \u2013 this makes the cell into a title cell.\u00a0 Write a placeholder title (you\u2019ll come back at the end and change the title). Run the cell.<\/li>\n<li>Title your sections. Repeat the steps above for seven new cells but use two hashtags (this creates smaller title text).\u00a0 Name them:\u00a0<strong>Analysis<\/strong>,\u00a0<strong>Packages<\/strong>, <strong>Calling Data<\/strong>, <strong>First Viz<\/strong>, <b>Second Viz<\/b><\/li>\n<\/ol>\n<p><strong>Packages<\/strong><\/p>\n<ol>\n<li>Load the package &#8220;ggplot2&#8221; by running library(&#8220;ggplot2).\u00a0\u00a0<strong>YOU DO NOT NEED TO RUN INSTALL PACKAGES.<\/strong><\/li>\n<\/ol>\n<p><strong>Calling Data<\/strong><\/p>\n<ol>\n<li>Call in each of the tables we have been working with: person, work, family, factory.\u00a0 Save each in a different variable.<\/li>\n<\/ol>\n<p><strong>First Viz.<\/strong><\/p>\n<ol>\n<li>Take some time to re-familiarize yourself with this data.\u00a0 Look at the <a href=\"http:\/\/courses.shroutdocs.org\/dcs104-fall2018\/2018\/10\/15\/oral-history-data-readme\/\">README<\/a> if you need to.<\/li>\n<li>Take some time to familiarize yourself with the kinds of visualizations we created in the <a href=\"http:\/\/shroutdocs.org\/notebooks\/DCS104_f2018\/Challenges%20of%20Data%20Viz.ipynb.zip\">Challenges of Data Viz notebook<\/a><\/li>\n<li>Come up with ONE question about the relationship between two numerical columns and ONE categorical column from TWO different tables.<\/li>\n<li>Merge those tables.<\/li>\n<li>Remove the NAs from the columns you are interested in.<\/li>\n<li>Consider the best practices for dataviz outlined above, and make a visualization, using one of the methods we used in the Challenges of Data Viz notebook.\u00a0 You will be plotting the two numerical columns, and color-coding according to the categorical column.<\/li>\n<li>Title your first viz section (something other than first viz)<\/li>\n<li>Write a paragraph outlining what the visualization is meant to show, and how you designed it in keeping with best practices in your analysis section.<\/li>\n<\/ol>\n<p><strong>Second Viz<\/strong><\/p>\n<ol>\n<li>Look at the additional types of visualizations available in ggplot2 using this <a href=\"https:\/\/www.rstudio.com\/wp-content\/uploads\/2015\/03\/ggplot2-cheatsheet.pdf\">ggplot2 cheat sheet<\/a><\/li>\n<li>Pick a visualization that we have not used already.<\/li>\n<li>Using different variables, repeat the steps above.<\/li>\n<\/ol>\n<p><strong>Analysis<\/strong><\/p>\n<ol>\n<li>Write an introduction that explains any insights that you gained from your data, and any new questions that your visualizations raised.<\/li>\n<li>Illustrate your insights using your images.<\/li>\n<li>Create a witty and\/or informative title for your notebook.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This exercise brings together what we have learned about data visualization.\u00a0 You will be creating your own notebook from scratch, calling data, manipulating that data, and visualizing it.\u00a0\u00a0Please submit the\u00a0 notebook create via this Lyceum link (section A) (section B) by the start of class on November 27th Steps: Review Best Practices.\u00a0As a class, we&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-778","post","type-post","status-publish","format-standard","hentry","category-assignments"],"_links":{"self":[{"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/posts\/778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/comments?post=778"}],"version-history":[{"count":3,"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/posts\/778\/revisions"}],"predecessor-version":[{"id":784,"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/posts\/778\/revisions\/784"}],"wp:attachment":[{"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/media?parent=778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/categories?post=778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.shroutdocs.org\/dcs104-fall2018\/wp-json\/wp\/v2\/tags?post=778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}