{"id":1850,"date":"2015-04-19T11:27:01","date_gmt":"2015-04-19T18:27:01","guid":{"rendered":"http:\/\/miriamposner.com\/blog\/?p=1850"},"modified":"2015-04-20T10:41:57","modified_gmt":"2015-04-20T17:41:57","slug":"a-fun-way-to-introduce-dh-students-to-dataviz","status":"publish","type":"post","link":"https:\/\/miriamposner.com\/blog\/a-fun-way-to-introduce-dh-students-to-dataviz\/","title":{"rendered":"A fun way to introduce DH students to dataviz"},"content":{"rendered":"<p><!-- Start ScreenSteps Content --><\/p>\n<div class=\"LessonContent\">\n<div class=\"LessonSummary\">As a teacher, I&#8217;ve always operated on the assumption that students are primarily interested in each other. Here&#8217;s a fun activity that takes advantage of that interest to teach students a little about data visualization. It&#8217;s an extremely unscientific Cosmo-style quiz, designed to show students which interests they have in common with each other. It&#8217;s just an introductory lesson, but it gives you a fun dataset to play with. You&#8217;ll probably want to split this among a few class sessions, since students will\u00a0need at least one full class to just get familiar with Gephi.<\/p>\n<p>Of course, it&#8217;s also a good chance to talk about how authoritative graphs like these can look, and whether the data these contain actually means much at all. (Probably not!)<\/p><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\">Make a questionnaire for your students<\/h3>\n<div class=\"StepImage\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2015\/04\/wpid1844-media_1429464822280.png\" alt=\"wpid1844-media_1429464822280.png\" width=\"540\" height=\"606\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>I&#8217;d do this about a week before you do the dataviz lesson. I used Google Forms for this. Just to make things more fun, I called it the Mysterious DH Questionnaire. I asked five questions, each of which had five options. The possible answers were literally the first options that occurred to me.<\/p>\n<p>Of course, you can choose whatever you want; just be sure you have a constrained list of choices (no write-ins).<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\">Make your spreadsheet into a two-mode edge list<\/h3>\n<div class=\"StepImage\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2015\/04\/wpid1845-media_1429465322984.png\" alt=\"wpid1845-media_1429465322984.png\" width=\"540\" height=\"139\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>Now that you have your data, you want it in three different formats: 1) raw; 2) an edge list for a <a href=\"http:\/\/toreopsahl.com\/tnet\/two-mode-networks\/\">two-mode network graph<\/a>; and 3) an edge list for a one-mode network graph. To get your two-mode list, use Open Refine to <a href=\"http:\/\/googlerefine.blogspot.com\/2011\/09\/json-code-to-transpose-important-number.html\">transpose columns across rows<\/a>. The idea is to go from the layout shown in the above screenshot to &#8230;<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<div class=\"StepImage\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2015\/04\/wpid1846-media_1429465687328.png\" alt=\"wpid1846-media_1429465687328.png\" width=\"353\" height=\"360\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>\u2026 this one. It&#8217;s the same data, just rearranged into two columns.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\">Make your spreadsheet into a one-mode edge list<\/h3>\n<div class=\"StepImage\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2015\/04\/wpid1847-media_1429466525579.png\" alt=\"wpid1847-media_1429466525579.png\" width=\"238\" height=\"185\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>Then, if you want (you don&#8217;t have to, but it can help students see the difference between one-mode and two-node network graphs), you can project your two-mode edge list into a one-mode edge list, using Gephi and <a href=\"http:\/\/electricarchaeology.ca\/2012\/04\/04\/converting-2-mode-with-multimodal-plugin-for-gephi\/\">this tutorial from Shawn Graham<\/a>.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\">Make an alluvial diagram<\/h3>\n<div class=\"StepImage\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2015\/04\/wpid1848-media_1429467279291.png\" alt=\"wpid1848-media_1429467279291.png\" width=\"540\" height=\"549\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>You can do this with the class. Use\u00a0<a href=\"http:\/\/app.raw.densitydesign.org\/\">RAW<\/a>\u00a0to make alluvial diagrams from the raw dataset, experimenting with different categories. It&#8217;s fun to see the various relationships between, say, book and movie preferences.<\/p>\n<\/div>\n<\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\">Make network graphs<\/h3>\n<div class=\"StepImage\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2015\/04\/wpid1849-media_1429467435887.png\" alt=\"wpid1849-media_1429467435887.png\" width=\"540\" height=\"404\" \/><\/div>\n<div class=\"StepInstructions\">\n<p>When the class is ready, move on to using the datasets to show which students have the most in common. <a href=\"http:\/\/miriamposner.com\/dh101f14\/?p=1389\">Here&#8217;s<\/a> a tutorial I prepared for students to use with this dataset (names have been blurred out). (And <a href=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2015\/04\/Creating-a-Network-Graph-with-Gephi.docx\">here&#8217;s<\/a> a Word version of the Gephi\u00a0tutorial, in case you&#8217;d like to alter it.)<\/p>\n<p>Start with the two-mode network diagram, and when the class is ready, move on to the one-mode. Students really enjoyed seeing who had the most in common, examining the communities Gephi was able to detect, and comparing those communities to their own groups of friends.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!-- End ScreenSteps Content --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a teacher, I&#8217;ve always operated on the assumption that students are primarily interested in each other. Here&#8217;s a fun activity that takes advantage of that interest to teach students a little about data visualization. It&#8217;s an extremely unscientific Cosmo-style quiz, designed to show students which interests they have in common with each other. It&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1850","post","type-post","status-publish","format-standard","hentry","category-digital-humanities"],"_links":{"self":[{"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/posts\/1850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/comments?post=1850"}],"version-history":[{"count":11,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/posts\/1850\/revisions"}],"predecessor-version":[{"id":1868,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/posts\/1850\/revisions\/1868"}],"wp:attachment":[{"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/media?parent=1850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/categories?post=1850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/tags?post=1850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}