<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data viz | Amy Mitchell-Whittington</title><link>https://amymitchell-whittington.netlify.app/post/</link><atom:link href="https://amymitchell-whittington.netlify.app/post/index.xml" rel="self" type="application/rss+xml"/><description>Data viz</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>© Amy Mitchell-Whittington 2026</copyright><image><url>https://amymitchell-whittington.netlify.app/images/icon_hu3a384eb87f1b94a1fd7619861d2a9df4_27862_512x512_fill_lanczos_center_2.png</url><title>Data viz</title><link>https://amymitchell-whittington.netlify.app/post/</link></image><item><title>Hot Ones</title><link>https://amymitchell-whittington.netlify.app/post/08-08-2023-hotones/</link><pubDate>Tue, 08 Aug 2023 00:00:00 +0000</pubDate><guid>https://amymitchell-whittington.netlify.app/post/08-08-2023-hotones/</guid><description>
&lt;div id="hot-ones" class="section level2">
&lt;h2>Hot Ones&lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2023/08-08-2023-hotones/08-08-2023-hotones.R">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>The data this week comes from Wikipedia articles: &lt;a href="https://en.wikipedia.org/wiki/Hot_Ones">Hot Ones&lt;/a> and &lt;a href="https://en.wikipedia.org/wiki/List_of_Hot_Ones_episodes">List of Hot Ones episodes.&lt;/a>&lt;/p>
&lt;blockquote>
&lt;p>&lt;em>Hot Ones is an American YouTube talk show, created by Chris Schonberger, hosted by Sean Evans and produced
by First We Feast and Complex Media. Its basic premise involves celebrities being interviewed by Evans over a
&lt;/em>platter of increasingly spicy chicken wings.&lt;/p>
&lt;/blockquote>
&lt;p>&lt;img src="https://media.giphy.com/media/C2VHMyaMFs3whd4sMm/giphy.gif" />
I probably watched way too many episodes of Hot Ones while creating this visualisation, which I’m not mad about. It’s a pretty funny show - I really just skipped to the end of each episode to see how everyone handled #10, the hottest wing.&lt;/p>
&lt;p>For my visualisation, I wanted to get an idea of whether the spice levels increased by season. Each season uses the same 10 sauces across each of it’s episodes so I didn’t need to worry about variation between episodes, just seasons. I used the sauces data to sum every 10 scoville ratings (equivalent to the 10 sauces used per season), averaged it out and then mapped to a data frame, which I used to plot my visualisation.&lt;/p>
&lt;p>A point to remember: If I want to count every n consecutive numbers (as I did for this), I need to use &lt;code>colSums&lt;/code>. If I want to sum every nth number, I need to use &lt;code>rowSums&lt;/code>, but this will only work if n divides &lt;code>length(v)&lt;/code>.&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/08-08-2023-hotones/index_files/figure-html/plot1-1.png" width="2100" />&lt;/p>
&lt;p>I originally wanted to see what the % change of the average scoville score was season on season, but when I mapped it out, it looked a little too complicated. I’m including it here for reference:&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/08-08-2023-hotones/index_files/figure-html/plot2-1.png" width="672" />&lt;/p>
&lt;/div></description></item><item><title>GPT Detectors</title><link>https://amymitchell-whittington.netlify.app/post/18-07-2023-gptdetectors/</link><pubDate>Tue, 18 Jul 2023 00:00:00 +0000</pubDate><guid>https://amymitchell-whittington.netlify.app/post/18-07-2023-gptdetectors/</guid><description>
&lt;div id="gpt-detectors" class="section level2">
&lt;h2>GPT Detectors&lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2023/19-07-2023-gptdetectors/19-07-2023-gptdetectors.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>The data this week comes from Simon Couch’s &lt;a href="https://github.com/simonpcouch/detectors/">detectors R package&lt;/a>, containing predictions from various GPT detectors. The data is based on the pre-print: &lt;a href="https://arxiv.org/abs/2304.02819">GPT Detectors Are Biased Against Non-Native English Writers&lt;/a>. Weixin Liang, Mert Yuksekgonul, Yining Mao, Eric Wu, James Zou.&lt;/p>
&lt;p>language model-based chatbot ChatGPT is reportedly the fastest-growing consumer application in history, after attracting &lt;a href="https://www.reuters.com/technology/chatgpt-sets-record-fastest-growing-user-base-analyst-note-2023-02-01/">100 million active users just two months after it was launched&lt;/a>. It’s easy to see why. The ability for such models to create large amounts of content within such a short period of time has opened the door wide open in terms of boosting productivity and creativity. From building cover letters for job applications to setting up company OKRs and everything in-between, people are using it in all kinds of ways. AI is even being used to detect AI-generated content, but how accurate has it been so far?&lt;/p>
&lt;p>Liang et al. set out to test the accuracy of several GPT detectors:&lt;/p>
&lt;blockquote>
&lt;p>&lt;em>The study authors carried out a series of experiments passing a number of essays to different GPT detection models.
Juxtaposing detector predictions for papers written by native and non-native English writers, the authors argue that GPT
detectors disproportionately classify real writing from non-native English writers as AI-generated.&lt;/em>&lt;/p>
&lt;/blockquote>
&lt;p>From the data, I was able to determine that GPT detectors correctly identified native English writers in 97% of cases, with only 3% being misclassified as AI-generated. However, the same was not true for non-native English writing samples, which were only correctly identified in 39% of cases.&lt;/p>
&lt;p>Interestingly, AI incorrectly identified AI-generated content as being created by a human in 69% of cases.&lt;/p>
&lt;table>
&lt;colgroup>
&lt;col width="23%" />
&lt;col width="29%" />
&lt;col width="35%" />
&lt;col width="11%" />
&lt;/colgroup>
&lt;thead>
&lt;tr class="header">
&lt;th align="left">predicted_class&lt;/th>
&lt;th align="right">native_English_text&lt;/th>
&lt;th align="right">non.native_English_text&lt;/th>
&lt;th align="right">AI_text&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr class="odd">
&lt;td align="left">Human&lt;/td>
&lt;td align="right">97&lt;/td>
&lt;td align="right">39&lt;/td>
&lt;td align="right">69&lt;/td>
&lt;/tr>
&lt;tr class="even">
&lt;td align="left">AI&lt;/td>
&lt;td align="right">3&lt;/td>
&lt;td align="right">61&lt;/td>
&lt;td align="right">31&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>I used a waffle chart to display the data because I think it’s a great way to visualise the small number of categories and is easy to interpret and understand. This was my first waffle chart, so there was a lot of trial and error! I struggled to work out the correct variables to map at first (I kept getting a reps() error), but once that was sorted it was relatively smooth sailing.&lt;/p>
&lt;p>I worked out how to reformat my data by changing from a “wide” format with each variable in its own column to a “long” format, so I could facet the data correctly. Then I changed the titles&lt;/p>
&lt;p>I also discovered &lt;code>theme(plot.margin = unit())&lt;/code>, which I used to change the margins of my plot.&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/18-07-2023-gptdetectors/index_files/figure-html/plot-1.png" width="2100" />&lt;/p>
&lt;p>I originally opted to use the &lt;code>iron()&lt;/code> function to knit all three waffle charts together, but it didn’t give me as much freedom to tweak and alter the plot as &lt;code>facet_wrap()&lt;/code>, so I switched it up. I also chose not to include the AI-generated content waffle chart, because it seemed to make the chart more complicated (with the headline/subline especially) than I wanted it to be.&lt;/p>
&lt;pre class="r">&lt;code>knitr::opts_chunk$set(warning = FALSE, message = FALSE)
#human and AI
ggplot(gpt2datalong, aes(values = value, fill = predicted_class)) +
geom_waffle(rows = 5, na.rm = FALSE, show.legend = TRUE, flip = TRUE, colour = &amp;quot;white&amp;quot;) +
facet_wrap(~measure) +
theme(panel.spacing.x = unit(0, &amp;quot;npc&amp;quot;)) +
theme(strip.text.x = element_text(hjust = 0.5)) +
coord_equal() +
theme_void() +
scale_fill_manual(values = c(&amp;quot;sienna3&amp;quot;, &amp;quot;royalblue&amp;quot;)) +
labs(
title = &amp;quot;How accurate are GPT dectectors at correctly classifying human-written content vs. AI generated content?&amp;quot;,
subtitle = &amp;quot;&amp;quot;,
fill = &amp;quot;GPT Classification&amp;quot;) +
theme(
plot.title = element_text(size = 8, hjust = 0),
plot.subtitle = element_text(size = 5, face = &amp;quot;italic&amp;quot;),
legend.title = element_text(size = 8))&lt;/code>&lt;/pre>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/18-07-2023-gptdetectors/index_files/figure-html/alternate%20plots-1.png" width="2100" />&lt;/p>
&lt;/div></description></item><item><title>Scurvy</title><link>https://amymitchell-whittington.netlify.app/post/25-07-2023-scurvy/</link><pubDate>Tue, 18 Jul 2023 00:00:00 +0000</pubDate><guid>https://amymitchell-whittington.netlify.app/post/25-07-2023-scurvy/</guid><description>
&lt;div id="scurvy" class="section level2">
&lt;h2>Scurvy&lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2023/19-07-2023-gptdetectors/19-07-2023-gptdetectors.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>The data this week comes from the &lt;a href="https://higgi13425.github.io/medicaldata/">medicaldata R package&lt;/a>. This is a data package from Peter Higgins, with 19 medical data sets for teaching Reproducible Medical Research with R.&lt;/p>
&lt;p>The specific data set I visualised this week is from a study published in 1757 in &lt;a href="https://htmlpreview.github.io/?https://github.com/higgi13425/medicaldata/blob/master/man/description_docs/scurvy_desc.html">A Treatise on the Scurvy in Three Parts, by James Lind.&lt;/a> I would suggest taking a read of Peter Higgins’ post on the study, it’s quite interesting.&lt;/p>
&lt;blockquote>
&lt;p>&lt;em>This data set contains 12 participants with scurvy. In 1757, it was not known that scurvy is a manifestation of vitamin C deficiency.
A variety of remedies had been anecdotally reported, but Lind was the first to test different regimens of acidic substances (including citrus fruits) against each other in a randomized, controlled trial.
6 distinct therapies were tested in 12 seamen with symptomatic scurvy, who were selected for similar severity.&lt;/em>&lt;/p>
&lt;/blockquote>
&lt;p>&lt;em>Of note, there is some dispute about whether this was truly the first clinical trial, or whether it actually happened, as there are no contemporaneous corroborating accounts.&lt;/em>&lt;/p>
&lt;p>I really enjoyed reading a little into this study and the data, especially the dosage for each of the treatments. I didn’t include them in the end graph, so as not to crowd out the information too much, but I’ll add them here, just for interest.&lt;/p>
&lt;p>Also, worth noting: Based on this study, only one of the 12 seamen showed no symptoms after treatment - he was treated with two lemons and an orange, daily.&lt;/p>
&lt;table>
&lt;colgroup>
&lt;col width="16%" />
&lt;col width="83%" />
&lt;/colgroup>
&lt;thead>
&lt;tr class="header">
&lt;th align="left">treatment&lt;/th>
&lt;th align="left">dosing_regimen_for_scurvy&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr class="odd">
&lt;td align="left">cider&lt;/td>
&lt;td align="left">1 quart per day&lt;/td>
&lt;/tr>
&lt;tr class="even">
&lt;td align="left">cider&lt;/td>
&lt;td align="left">1 quart per day&lt;/td>
&lt;/tr>
&lt;tr class="odd">
&lt;td align="left">dilute sulfuric acid&lt;/td>
&lt;td align="left">25 drops of elixir of vitriol, three times a day&lt;/td>
&lt;/tr>
&lt;tr class="even">
&lt;td align="left">dilute sulfuric acid&lt;/td>
&lt;td align="left">25 drops of elixir of vitriol, three times a day&lt;/td>
&lt;/tr>
&lt;tr class="odd">
&lt;td align="left">vinegar&lt;/td>
&lt;td align="left">two spoonfuls, three times daily&lt;/td>
&lt;/tr>
&lt;tr class="even">
&lt;td align="left">vinegar&lt;/td>
&lt;td align="left">two spoonfuls, three times daily&lt;/td>
&lt;/tr>
&lt;tr class="odd">
&lt;td align="left">sea water&lt;/td>
&lt;td align="left">half pint daily&lt;/td>
&lt;/tr>
&lt;tr class="even">
&lt;td align="left">sea water&lt;/td>
&lt;td align="left">half pint daily&lt;/td>
&lt;/tr>
&lt;tr class="odd">
&lt;td align="left">citrus&lt;/td>
&lt;td align="left">two lemons and an orange daily&lt;/td>
&lt;/tr>
&lt;tr class="even">
&lt;td align="left">citrus&lt;/td>
&lt;td align="left">two lemons and an orange daily&lt;/td>
&lt;/tr>
&lt;tr class="odd">
&lt;td align="left">purgative mixture&lt;/td>
&lt;td align="left">a nutmeg-sized paste of garlic, mustard seed, horseradish, balsam of Peru, and gum myrrh three times a day&lt;/td>
&lt;/tr>
&lt;tr class="even">
&lt;td align="left">purgative mixture&lt;/td>
&lt;td align="left">a nutmeg-sized paste of garlic, mustard seed, horseradish, balsam of Peru, and gum myrrh three times a day&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>I saw &lt;a href="https://fosstodon.org/@nrennie">Nicola Rennie’s&lt;/a> wonderful visualisation for this data set and wanted to set out to recreate something similar!&lt;/p>
&lt;p>In terms of cleaning the data this week (it came with a lot of “_” and numbers), I familiarised myself with the &lt;code>stringr&lt;/code> package, especially the &lt;code>str_replace_all()&lt;/code> function, which was fun. Although, I struggled to apply this function for more than one variable to replace, so had to input manually.&lt;/p>
&lt;p>At first, I thought it would be fun to use the &lt;code>geom_lime()&lt;/code> function (each point is the shape of a lime on a graph), but realised I couldn’t map the symptom severity to the size of each lime so I scrapped that idea. I am on the lookout for a data set to use it on in the future!&lt;/p>
&lt;p>I wanted to try out different shapes as a way to visualise the severity of symptoms after the treatments, but given there was more than one sailor for each treatment, it meant there was an overlap of shapes, which I thought looked confusing. For example, one sailor being treated with vinegar might still have severe gum rot while another also being treated with vinegar might only have mild gum rot.&lt;/p>
&lt;p>While I ended up representing the severity of symptom by size, I wasn’t 100% happy with the outcome so I rearranged the y-axis so as to have cider and citrus (the two best performers) at the top.&lt;/p>
&lt;p>Perhaps it would have been better to signify the symptoms of each of the 12 patients. Might be something to consider with a different visualisation.&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/25-07-2023-scurvy/index_files/figure-html/plot-1.png" width="672" />&lt;/p>
&lt;/div></description></item><item><title>U.S. Historical Markers</title><link>https://amymitchell-whittington.netlify.app/post/04-07-2023-historicmarkers/</link><pubDate>Tue, 27 Jun 2023 00:00:00 +0000</pubDate><guid>https://amymitchell-whittington.netlify.app/post/04-07-2023-historicmarkers/</guid><description>
&lt;div id="u.s.historical-markers" class="section level2">
&lt;h2>U.S.Historical Markers &lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2023/04-07-2023-historicmarkers/04-07-2023-historicalmarkers.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>The data this week comes from the &lt;a href="https://www.hmdb.org/geolists.asp?c=United%20States%20of%20America">Historical Marker Database USA Index.&lt;/a>&lt;/p>
&lt;p>This searchable online catalogue was so fun to explore! I didn’t realise there was such a thing online (probably because there are only 36 Australian markers recorded on the site compared to 183k U.S. markers).&lt;/p>
&lt;p>According to the database, it is &lt;em>“an illustrated searchable online catalog of historical information viewed through the filter of roadside and other permanent outdoor markers, monuments, and plaques”.&lt;/em> Anyone can contribute, either by adding new markers or updating existing marker pages.&lt;/p>
&lt;p>For this Tidy Tuesday project, only the U.S. marker database was provided and what caught my eye the most was the column relating to missing markers.&lt;/p>
&lt;p>I wanted to use percentages because I felt it was the best way to represent the data, and was surprised by the amount of markers that were reported or confirmed missing. I wonder what happened to them?&lt;/p>
&lt;p>This was also a great way to test out the labs() annotate function and play around with positioning.&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/04-07-2023-historicmarkers/index_files/figure-html/plot-1.png" width="2100" />&lt;/p>
&lt;/div></description></item><item><title>U.S. Populated Places</title><link>https://amymitchell-whittington.netlify.app/post/27-06-2023-uspopplaces/</link><pubDate>Tue, 27 Jun 2023 00:00:00 +0000</pubDate><guid>https://amymitchell-whittington.netlify.app/post/27-06-2023-uspopplaces/</guid><description>
&lt;div id="u.s.populated-places" class="section level2">
&lt;h2>U.S.Populated Places &lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2023/27-06-2023-USpopulatedplaces/27-06-2023USpopulatedplaces.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>Data this week comes from the &lt;a href="https://prd-tnm.s3.amazonaws.com/index.html?prefix=StagedProducts/GeographicNames/">National Map Staged Products Directory&lt;/a> from the &lt;a href="https://www.usgs.gov/us-board-on-geographic-names/download-gnis-data">US Board of Geographic Names.&lt;/a>.&lt;/p>
&lt;p>This was a fun #TidyTuesday data set to work with because it timed well with some friends who flew to the U.S. last week to have an Elvis wedding in Las Vegas 💞&lt;/p>
&lt;p>They’re renting an RV and hitting the road, with plans to stop at a few major national parks in the area, so I thought I would use their honeymoon travel itinerary as a guide to visualising this week’s U.S. Populated Places data.&lt;/p>
&lt;p>Using the usmap package was a little tricky, as I had to transform my data so I could plot it properly. I think after my attempt at using a different maps package to plot reported UFO sightings in Australia last week, I might need to try out ggmaps to see if it’s a little more streamlined.&lt;/p>
&lt;p>I had such a hard time trying to work out why there was so much blank space around my map, see here:&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/27-06-2023-uspopplaces/index_files/figure-html/old_plot.png" alt="My old image with white space on either side of map" />
But, after A LOT OF GOOGLING, I found this:&lt;/p>
&lt;p>&lt;em>The Cartesian coordinate system is the most familiar, and common, type of coordinate system. Setting limits on the coordinate system will zoom the plot (like you’re looking at it with a magnifying glass), and will not change the underlying data like setting limits on a scale will.&lt;/em> &lt;a href="https://ggplot2.tidyverse.org/index.html">Via this ggplot2 ref. site&lt;/a>&lt;/p>
&lt;p>So I added coord_cartesian() to my ggplot and voila! I now need to do some digging into how EXACTLY this works 😅&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/27-06-2023-uspopplaces/index_files/figure-html/plot-1.png" width="2100" />&lt;/p>
&lt;/div></description></item><item><title>Reported UFO Sightings in Australia</title><link>https://amymitchell-whittington.netlify.app/post/20-06-2023-ufo/</link><pubDate>Tue, 20 Jun 2023 00:00:00 +0000</pubDate><guid>https://amymitchell-whittington.netlify.app/post/20-06-2023-ufo/</guid><description>
&lt;div id="reported-ufo-sightings" class="section level2">
&lt;h2>Reported UFO Sightings &lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2023/20-06-2023-UFO/20-06-2023-UFO.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>This week’s Tidy Tuesday data comes from &lt;a href="https://nuforc.org/">NUFORC&lt;/a> and includes more than 80,000 recorded UFO sightings around the world. I had a lot of fun with this, especially reading some of the descriptions from reported sightings in Australia:&lt;/p>
&lt;p>&lt;em>“It was a huge black round thing and it was leaving a green trail of smoke behind it. It made a buzzing sound.”&lt;/em>&lt;/p>
&lt;p>&lt;em>“A brilliant blue-white light performs amazing acrobatics for an hour and a half over the city of Brisbane.”&lt;/em>&lt;/p>
&lt;p>&lt;em>“Fireballs dance in the sky over Sydney, Australia”&lt;/em>&lt;/p>
&lt;p>I was interested in the shapes people were reporting, as it wasn’t all just discs or flying saucers. People reported seeing eggs, triangles, formations, cigars and more.&lt;/p>
&lt;p>To get a better sense of the shapes, I decided to group them into three categories - I am not sure I really did this grouping enough justice, to be honest, but I do think it managed to simplify the shapes for a graph format. Here’s my code for grouping the shapes:&lt;/p>
&lt;pre class="r">&lt;code>#sort UFO shapes sighted in Australia into three categories and sort by decade:
ufo_aus_year &amp;lt;- ufo_sightings %&amp;gt;%
filter(country == &amp;quot;au&amp;quot;) %&amp;gt;%
mutate(shape = case_when(
ufo_shape %in% c(&amp;quot;cylinder&amp;quot;, &amp;quot;cigar&amp;quot;, &amp;quot;dome&amp;quot;, &amp;quot;circle&amp;quot;, &amp;quot;teardrop&amp;quot;, &amp;quot;fireball&amp;quot;, &amp;quot;egg&amp;quot;, &amp;quot;sphere&amp;quot;, &amp;quot;disk&amp;quot;, &amp;quot;round&amp;quot;, &amp;quot;oval&amp;quot;, &amp;quot;crescent&amp;quot;) ~ &amp;quot;Round&amp;quot;,
ufo_shape %in% c(&amp;quot;diamond&amp;quot;, &amp;quot;hexagon&amp;quot;, &amp;quot;rectangle&amp;quot;, &amp;quot;chevron&amp;quot;, &amp;quot;triangle&amp;quot;, &amp;quot;cross&amp;quot;, &amp;quot;pyramid&amp;quot;, &amp;quot;delta&amp;quot;, &amp;quot;cone&amp;quot;) ~ &amp;quot;Angled&amp;quot;,
ufo_shape %in% c(&amp;quot;light&amp;quot;, &amp;quot;flash&amp;quot;, &amp;quot;changed&amp;quot;, &amp;quot;formation&amp;quot;, &amp;quot;changing&amp;quot;, &amp;quot;flare&amp;quot;) ~ &amp;quot;Flash or changing light&amp;quot;)) %&amp;gt;%
select(date_time, shape, longitude, latitude) %&amp;gt;%
mutate(year = as.numeric(format(as.Date(date_time, format = &amp;quot;%m/%d/%Y&amp;quot;),&amp;quot;%Y&amp;quot;))) %&amp;gt;%
filter(shape != c(&amp;quot;NA&amp;quot;, &amp;quot;other&amp;quot;)) %&amp;gt;%
count(shape, year)&lt;/code>&lt;/pre>
&lt;p>Alternatively, I could have put a Top 10 list together (added below), but I didn’t have time to think about how to properly visualise it.&lt;/p>
&lt;pre>&lt;code>## ufo_shape n
## 1 light 119
## 2 circle 62
## 3 disk 50
## 4 triangle 43
## 5 fireball 34
## 6 oval 30
## 7 unknown 25
## 8 other 22
## 9 formation 20
## 10 cigar 15
## 11 sphere 15
## 12 egg 12
## 13 diamond 10
## 14 rectangle 10
## 15 teardrop 10
## 16 changing 9
## 17 cylinder 9
## 18 cone 6
## 19 flash 4
## 20 chevron 3
## 21 cross 1&lt;/code>&lt;/pre>
&lt;p>I also attempted to map the sightings of these three shape categories to a map of Australia. I was super excited to learn how to use a map to portray data, but I think I should have used different data to map, or made it more interactive or looked at the data at state level (QLD, NSW e.t.c.,) so it was clearer where these sightings were reported.&lt;/p>
&lt;p>Another fun idea I had was to overlay flight path data to the map to see if any of the reported sightings, especially light/flare sightings, were near a flight path. But that could be for another time.&lt;/p>
&lt;p>Here’s my first attempt at using a map in my visualisations!&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/20-06-2023-ufo/index_files/figure-html/plot-1.png" width="2100" />&lt;/p>
&lt;/div></description></item><item><title>Food Insecurity in Mozambique and Tanzania</title><link>https://amymitchell-whittington.netlify.app/post/13-06-2023-safisurvey/</link><pubDate>Tue, 13 Jun 2023 00:00:00 +0000</pubDate><guid>https://amymitchell-whittington.netlify.app/post/13-06-2023-safisurvey/</guid><description>
&lt;script src="https://amymitchell-whittington.netlify.app/post/13-06-2023-safisurvey/index_files/header-attrs/header-attrs.js">&lt;/script>
&lt;div id="safi-survey" class="section level2">
&lt;h2>SAFI Survey &lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2023/13-06-2023-safidata/13-06-2023-safidata.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>This week’s Tidy Tuesday data comes from the &lt;a href="http://www.safi-research.org/">SAFI (Studying African Farmer-Led Irrigation) project team&lt;/a>. The aim of SAFI is to better understand farming and small-scale irrigation methods used in rural areas of Africa to see if these methods can “offer a model for broad-based economic growth”.&lt;/p>
&lt;p>Between 2016 and 2017, SAFI sent out a survey to households in Tanzania and Mozambique to learn more about each household (e.g., number of rooms and household members, type of home) and their agricultural practices (e.g., water usage, number of livestock).&lt;/p>
&lt;p>It took me a little time to get back into the swing of things, given this was my first week back on the tools since 2021, so I kept it straightforward. I focused on a question in the survey where households were asked to “indicate which months, In the last 12 months have you faced a situation when you did not have enough food to feed the household?”. I found that across Tanzania and Mozambique, almost 75% of respondents said they’d had to go through at least one month without enough food for their household.&lt;/p>
&lt;p>After some initial reading, I found that households in both &lt;a href="https://www.climatelinks.org/sites/default/files/asset/document/mozambique_climate_vulnerability_profile_jan2013.pdf">Mozambique&lt;/a> and &lt;a href="https://wwfeu.awsassets.panda.org/downloads/east_africa_climate_change_impacts_final_2.pdf">Tanzania&lt;/a> depend heavily on rain-fed agriculture, which can make livelihood and food security vulnerable to climate change. If I had of had more time, I would have liked to pair my chart with precipitation data for the same period - and provide yearly averages - to see whether there was any correlation, but I ran out of time on this one!&lt;/p>
&lt;/div></description></item><item><title>Paralympians excelling in more than one sport</title><link>https://amymitchell-whittington.netlify.app/post/03-08-2021-paralympics/</link><pubDate>Tue, 03 Aug 2021 21:13:14 -0500</pubDate><guid>https://amymitchell-whittington.netlify.app/post/03-08-2021-paralympics/</guid><description>
&lt;script src="https://amymitchell-whittington.netlify.app/post/03-08-2021-paralympics/index_files/header-attrs/header-attrs.js">&lt;/script>
&lt;div id="the-paralympic-games" class="section level2">
&lt;h2>The Paralympic Games &lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2021/03-08-2021-paralympics/03-08-2021-paralympics.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>This week’s Tidy Tuesday comes from the &lt;a href="https://db.ipc-services.org/sdms/hira/web/index">International Paralympic Committee&lt;/a>. The data details all medal winners from the 1980-2016 Paralympic Games.&lt;/p>
&lt;p>The Paralympics is the largest sports competition for athletes with an impairment worldwide. According to the IPC website, “It involves athletes from several impairment categories. The six main disability categories are: amputee, cerebral palsy, intellectual impairment, visually impaired, spinal injuries and Les Autres (French for”the others”, a category that includes conditions that do not fall into the categories mentioned before.)”&lt;/p>
&lt;p>Researching the Paralympics, I found there were instances where more than one athlete was competing in not just more than one event under a type of sport (eg: competing in butterfly and breaststroke) but also competing and winning medals in more than one sport (eg: athletics and table tennis).&lt;/p>
&lt;p>When I started to analyse the data, I found 692 athletes won medals in more than one sport in each of the Paralympic Games between 1980 and 2016, compared to just seven Olympic athletes in that same time period. I decided to put together a simple connected scatterplot to showcase the percentage of Paralympic athletes who won medals at each of the Games to best reflect any changes over the years.&lt;/p>
&lt;p>Interestingly, Kyung Mook Kim, representing the Republic of Korea, has &lt;a href="https://www.paralympic.org/kyung-mook-kim">won medals at every Paralympic Games from 1992 - 2016&lt;/a>, in table tennis and wheelchair tennis.&lt;/p>
&lt;p>It seems many Paralympic athletes often compete at elite levels in multiple sports at the Games.&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/03-08-2021-paralympics/index_files/figure-html/plot-1.png" width="672" />&lt;/p>
&lt;/div></description></item><item><title>Tug-of-War at the Olympics</title><link>https://amymitchell-whittington.netlify.app/post/27-07-2021-olympics/</link><pubDate>Tue, 27 Jul 2021 21:13:14 -0500</pubDate><guid>https://amymitchell-whittington.netlify.app/post/27-07-2021-olympics/</guid><description>
&lt;script src="https://amymitchell-whittington.netlify.app/post/27-07-2021-olympics/index_files/header-attrs/header-attrs.js">&lt;/script>
&lt;div id="olympic-medals" class="section level2">
&lt;h2>Olympic medals &lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2021/27-07-2021-olympics/27-07-2021-olympics.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h2>
&lt;p>This week’s Tidy Tuesday data comes from &lt;a href="https://www.kaggle.com/heesoo37/120-years-of-olympic-history-athletes-and-results?select=noc_regions.csv">Kaggle&lt;/a>.&lt;/p>
&lt;p>It’s an historical dataset on the modern Olympic Games, including all the Games from Athens 1896 to Rio 2016. As I went through the list of sports, I was surprised to see Tug-Of-War, so I decided to focus on that for my data visualization.&lt;/p>
&lt;p>&lt;img src="https://media.giphy.com/media/2xPJgvjnr456xOQTmW/giphy.gif" />&lt;/p>
&lt;p>The event was part of the Games from 1900 to 1920.&lt;/p>
&lt;div id="the-rules" class="section level4">
&lt;h4>&lt;a href="https://olympic.ca/2014/07/22/olympic-tug-of-war-and-its-controversial-demise/">The rules&lt;/a>&lt;/h4>
&lt;ul>
&lt;li>The first team to pull the other team over a line six feet from their starting point was named the winner.&lt;/li>
&lt;li>Matches had a five minute time limit. If neither team was pulled across the line, then the team that got the other team closest to that point was declared the winner.&lt;/li>
&lt;/ul>
&lt;p>The most successful country was Great Britain, which won five medals in total.&lt;/p>
&lt;p>At the 1908 Games, held in London, three of five the competing teams were police departments - Liverpool Police, City of London Police, and Metro Police “K” Division. The other two teams were United States and Sweden.&lt;/p>
&lt;p>According to the &lt;a href="http://tugofwar.co.uk/olympics-history">Tug of War Association London&lt;/a>, the American team protested it’s first-round loss to the Liverpool Police team, claiming their service boots were “…so heavy in fact that it was only with great effort that they could lift their feet from the ground”. The protest was dismissed, and the American team withdrew from the competition.&lt;/p>
&lt;p>The three police teams representing Great Britain went on to win gold, silver, and bronze that year.&lt;/p>
&lt;p>I struggled quite a bit trying to work out how to fix the spacing issues between points on the graph.&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/27-07-2021-olympics/index_files/figure-html/tug%20plot-1.png" width="1440" />&lt;/p>
&lt;/div>
&lt;/div></description></item><item><title>People living in severe, extreme, or exceptional drought in the western states of the U.S.</title><link>https://amymitchell-whittington.netlify.app/post/20-07-2021-usdrought/</link><pubDate>Tue, 20 Jul 2021 21:13:14 -0500</pubDate><guid>https://amymitchell-whittington.netlify.app/post/20-07-2021-usdrought/</guid><description>
&lt;script src="https://amymitchell-whittington.netlify.app/post/20-07-2021-usdrought/index_files/header-attrs/header-attrs.js">&lt;/script>
&lt;div id="u.s.-drought-the-number-of-people-living-in-the-western-states-of-the-u.s.-impacted-by-drought" class="section level3">
&lt;h3>U.S. drought: The number of people living in the western states of the U.S. impacted by drought &lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/blob/main/2021/20-07-2021-usdrought/20-07-2021-usdrought.Rmd">&amp;lt;/&amp;gt;&lt;/a>&lt;/h3>
&lt;p>This week’s &lt;a href="https://github.com/rfordatascience/tidytuesday/blob/master/data/2021/2021-07-20/readme.md">Tidy Tuesday data&lt;/a> comes from the &lt;a href="https://droughtmonitor.unl.edu/DmData/DataDownload/ComprehensiveStatistics.aspx">U.S. Drought Monitor&lt;/a>.&lt;/p>
&lt;p>The dataset details the drought level across U.S. states from 2001-2021. I wanted to look at the number of people who have experienced severe, extreme, and/or exceptional drought conditions over this time in the western states of the U.S.&lt;/p>
&lt;p>This one was a bit tricky. I wanted to show the impact of people affected by severe+ drought and decided to use the western states as an example because on first glance, that area seemed to be hit quite hard with drought over the years.&lt;/p>
&lt;p>Using the pop_pct would have been a lot easier to read at graph level, but I struggled to work out how I could add % of pop. for each drought level by each week to create the graph I wanted.&lt;/p>
&lt;p>The outcome was a stacked graph that ended up looking quite messy. This was a good learning curve.&lt;/p>
&lt;p>Data Reference: The U.S. Drought Monitor is jointly produced by the National Drought Mitigation Center at the University of Nebraska-Lincoln, the United States Department of Agriculture, and the National Oceanic and Atmospheric Administration. Map courtesy of NDMC.&lt;/p>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/20-07-2021-usdrought/index_files/figure-html/plot-1.png" width="672" />&lt;/p>
&lt;/div></description></item><item><title>Scooby Doo monster motives</title><link>https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/</link><pubDate>Tue, 13 Jul 2021 21:13:14 -0500</pubDate><guid>https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/</guid><description>
&lt;script src="https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/index_files/header-attrs/header-attrs.js">&lt;/script>
&lt;div id="my-first-tidy-tuesday-submission" class="section level3">
&lt;h3>My first Tidy Tuesday submission &lt;a href="https://github.com/amymitchell-whittington/TidyTuesday/tree/main/2021/13-07-2021-scoobydoo">&amp;lt;/&amp;gt;&lt;/a>&lt;/h3>
&lt;p>These past few months I’ve been playing around a lot in RStudio.&lt;/p>
&lt;p>I really wanted to get stuck into data visualization, so I figured the best way would be to challenge myself weekly with &lt;a href="https://github.com/rfordatascience/tidytuesday">TidyTuesday&lt;/a>, a weekly data project in R from the R4DS community.&lt;/p>
&lt;p>So, here’s my first of &lt;em>hopefully&lt;/em> many submissions.
Luckily, I started off with a fun one - data from every single Scooby Doo episode and movie since 1969.&lt;br />
The dataset came from &lt;a href="https://www.kaggle.com/williamschooleman/scoobydoo-complete">Kaggle&lt;/a>, manually aggregated by &lt;a href="https://www.kaggle.com/williamschooleman">plummye&lt;/a>.&lt;/p>
&lt;p>For this one, I wanted to see whether the motives changed for the Scooby Doo monsters over the decades using treemaps.&lt;/p>
&lt;p>I also decided to try out gganimate for the first time with my treemaps - it’s a little hectic 😄.&lt;/p>
&lt;p>&lt;img src="https://raw.githubusercontent.com/amymitchell-whittington/TidyTuesday/main/2021/13-07-2021-scoobydoo/scoobymotives2.gif" />&lt;/p>
&lt;/div>
&lt;div id="what-were-the-scooby-doo-monster-motives-over-the-decades" class="section level3">
&lt;h3>What were the Scooby Doo monster motives over the decades?&lt;/h3>
&lt;p>&lt;img src="https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/index_files/figure-html/motive%20treemap-1.png" width="672" />&lt;img src="https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/index_files/figure-html/motive%20treemap-2.png" width="672" />&lt;img src="https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/index_files/figure-html/motive%20treemap-3.png" width="672" />&lt;img src="https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/index_files/figure-html/motive%20treemap-4.png" width="672" />&lt;img src="https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/index_files/figure-html/motive%20treemap-5.png" width="672" />&lt;img src="https://amymitchell-whittington.netlify.app/post/2021-07-13-tt-scoobydoo/index_files/figure-html/motive%20treemap-6.png" width="672" />&lt;/p>
&lt;/div></description></item></channel></rss>