{"id":7,"date":"2023-02-20T03:40:57","date_gmt":"2023-02-20T03:40:57","guid":{"rendered":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/?p=7"},"modified":"2023-02-20T03:40:57","modified_gmt":"2023-02-20T03:40:57","slug":"hacking-the-humanities-midterm","status":"publish","type":"post","link":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/midterm\/hacking-the-humanities-midterm\/","title":{"rendered":"Hacking the Humanities Midterm"},"content":{"rendered":"\n<p><strong>Introduction:<\/strong><\/p>\n\n\n\n<p>For my Hacking the Humanities midterm project, I opted to do an analysis of the locations in Chris Claremont&#8217;s Uncanny X-Men run. I wanted to determine which locations were used the most during Claremont&#8217;s run in order to perhaps understand which locations had the most importance. In order to do this, I used R, which is a coding program designed for statistical analysis, to make a graphic from a data set that contained a list of locations used in each issue of Claremont&#8217;s run.<\/p>\n\n\n\n<p><strong>Processes:<\/strong><\/p>\n\n\n\n<p>The first step in making this graphic was to manipulate my data set in order to have it fit my need. In R, there are a couple ways to do this and I opted for a pretty easy option. My first step was to load the csv data set into R and then, for ease of future commands, rename the variable I&#8217;m interested in (Location).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"65\" src=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_082623-1024x65.png\" alt=\"Commands to clean up my data set.\" class=\"wp-image-10\" srcset=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_082623-1024x65.png 1024w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_082623-300x19.png 300w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_082623-768x49.png 768w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_082623-1536x97.png 1536w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_082623.png 1939w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">The first steps in creating my graphic are editing it to my liking.<\/figcaption><\/figure>\n\n\n\n<p>I still need to edit my data set as it&#8217;s not exactly what I want yet. I needed to obtain a count of each location&#8217;s appearances in Claremont&#8217;s run. There are two ways to do this in R. One way we can do this is by piping together the group_by and summarize commands to obtain a count. Another way we could do this is by simply piping the data set into the count command which will allow us to get a count of each location. This is a significantly easier route as while summarize is great for all manner of numerical summaries, the count command is the simplest and best command for strictly obtaining counts of a certain variable. The pipe (%>%) is extremely useful when you don&#8217;t want to retype many lines of code and are using the same data set.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"68\" src=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_083504-1024x68.png\" alt=\"Count command used in my project.\" class=\"wp-image-11\" srcset=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_083504-1024x68.png 1024w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_083504-300x20.png 300w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_083504-768x51.png 768w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_083504-1536x103.png 1536w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_083504.png 1946w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">The count command helped me get a numerical count of each location&#8217;s appearances.<\/figcaption><\/figure>\n\n\n\n<p>The last thing I opted to do was simplify my data set by slicing the 10 locations with the highest number of appearances. There were over 200 locations used in Claremont&#8217;s run and creating a graphic using all 200 would&#8217;ve been a bit messy and difficult to accomplish. I used the slice_max command to finish my alterations to the data set and now I was ready to create my figure.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"66\" src=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084040-1024x66.png\" alt=\"Slice_max command for my data set.\" class=\"wp-image-12\" srcset=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084040-1024x66.png 1024w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084040-300x19.png 300w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084040-768x49.png 768w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084040-1536x99.png 1536w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084040.png 1929w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">The slice command is very important for finding the highest and lowest numbers in a data set.<\/figcaption><\/figure>\n\n\n\n<p>Creating the graphic after was pretty simple. I created a bar chart using the ggplot package and the geom_col command, which will allow me to show the top 10 highest number of location appearances in Claremont&#8217;s X-Men run.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"163\" src=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084639-1024x163.png\" alt=\"Final code needed to create my figure\" class=\"wp-image-13\" srcset=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084639-1024x163.png 1024w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084639-300x48.png 300w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084639-768x122.png 768w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084639-1536x244.png 1536w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/Screenshot_20230219_084639.png 1949w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">A bar chart was the best way to visualize my data.<\/figcaption><\/figure>\n\n\n\n<p><strong>Presentation<\/strong>:<\/p>\n\n\n\n<p>I wanted to make my graphic look as nice as possible and luckily R offers a large number of options for graphic design. First, I reordered the factors so that the columns were in order from largest to smallest. Then, I edited the theme and the grid in order to make the graph look a bit cleaner. I also removed the legend and added some color to my graphic to make it cleaner as well. This should make my graphic easy to understand and interpret regardless of whether you have looked at the data set or not. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"633\" src=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/000038-1024x633.png\" alt=\"My graphic showing the top 10 used locations in Chris Claremont's Uncanny X-Men run.\" class=\"wp-image-9\" srcset=\"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/000038-1024x633.png 1024w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/000038-300x185.png 300w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/000038-768x475.png 768w, https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-content\/uploads\/2023\/02\/000038.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">My Final Graphic<\/figcaption><\/figure>\n\n\n\n<p><strong>Significance:<\/strong><\/p>\n\n\n\n<p>Using this digital method of analysis could be very useful for the humanities. R is designed for statistical analysis, which would be great for any sort of analysis you would want to do involving finding and comparing some sort of statistic in the humanities. The amount of words a character says across multiple stories, how many times a location appears, and more can be easily analyzed using R. This shows that both data science and the digital humanities can be intertwined and used to expand our understanding of both fields.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: For my Hacking the Humanities midterm project, I opted to do an analysis of the locations in Chris Claremont&#8217;s Uncanny X-Men run. I wanted to determine which locations were used the most during Claremont&#8217;s run in order to perhaps understand which locations had the most importance. In order to do this, I used R, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[4,5,6],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-midterm","tag-digital-humanities","tag-r","tag-x-men"],"_links":{"self":[{"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":2,"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/posts\/7\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/midtermtyfolks.folkst.sites.carleton.edu\/blog\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}