<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ggplot2 on rostrum.blog</title>
    <link>https://www.rostrum.blog/tags/ggplot2/</link>
    <description>Recent content in Ggplot2 on rostrum.blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Wed, 10 May 2023 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.rostrum.blog/tags/ggplot2/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Recreating a dataviz with {ggplot2}</title>
      <link>https://www.rostrum.blog/2023/05/10/spear-ggplot2/</link>
      <pubDate>Wed, 10 May 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2023/05/10/spear-ggplot2/</guid>
      <description>They’re the same picture. Nearly.  tl;dr Two years ago I won a data-viz recreation competition run by the Royal Statistical Society (RSS) using base R’s plotting. I wrote a short {ggplot2} how-to for RSS’s ‘Significance’ magazine that was never published1, so here it is now.
 Recreate This short code walkthrough will get you started on recreating Mary Eleanor Spear’s cotton plot (1952), as used in the Royal Statistical Society’s #CottonViz challenge.</description>
    </item>
    
    <item>
      <title>#GithubSkyline but hear me out</title>
      <link>https://www.rostrum.blog/2021/02/21/skyphone/</link>
      <pubDate>Sun, 21 Feb 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2021/02/21/skyphone/</guid>
      <description>My skyline clearly has a Central Business District with development in the suburbs.   Note
The GitHub Skyline API–on which the {skyphone} package depends–stopped responding (i.e. it 404s) soon after this post was published. I may fix {skyphone} in future to work via {gh} instead; feel free to contribute.
 tl;dr I made the R package {skyphone} to get GitHub contributions data from GitHub Skyline and sonify it.
 Reach for the skyline Skyline is an online curio from GitHub that lets you input a user’s name and get a 3D rendering of that user’s contributions to the platform.</description>
    </item>
    
    <item>
      <title>Accessible colour contrasts with {coloratio}</title>
      <link>https://www.rostrum.blog/2020/12/30/coloratio/</link>
      <pubDate>Wed, 30 Dec 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2020/12/30/coloratio/</guid>
      <description>This blog’s theme: insufficient contrast!  tl;dr I made a small R package called {coloratio} to evaluate colour-contrast ratios for accessibility. Then I found out that {savonliquide} already exists to do this.
 Accessible charts The UK government’s website, GOV.UK, was developed with user needs and accessibility in mind. I’ve been using {ggplot2} to recreate the simple, accessible chart styles suggested for use on GOV.UK by the Government Statistical Service.</description>
    </item>
    
    <item>
      <title>AGÜEROOOOO with {ggsoccer} and {gganimate}</title>
      <link>https://www.rostrum.blog/2020/05/02/aguerooooo/</link>
      <pubDate>Sat, 02 May 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2020/05/02/aguerooooo/</guid>
      <description>tl;dr I used R to animate the goal that won Manchester City the 2011/12 Premier League title in breathtaking fashion.
Inspired by Ryo Nakagawara, who makes awesome R-related soccer content that you can find on his site and on Twitter.1
 The problem Soccer has run dry.
Leagues have been cancelled or decided on a contentious points-per-game basis given that there’s no precedent. The fate of the 2019/20 English Premier League season is still unknown.</description>
    </item>
    
    <item>
      <title>{altcheckr}: check image alt text from R</title>
      <link>https://www.rostrum.blog/2019/12/08/altcheckr/</link>
      <pubDate>Sun, 08 Dec 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2019/12/08/altcheckr/</guid>
      <description>tl;dr I’ve made a small R package called {altcheckr} that checks the accessibility of images on web pages. It has functions that (1) scrape attributes from HTML  elements on a web page and (2) apply simple rules to indicate the suitability of the alt text provided. To use:
remotes::install_github(&amp;quot;matt-dray/altcheckr&amp;quot;) images &amp;lt;- alt_get(&amp;quot;https://www.bbc.co.uk/news&amp;quot;) alt_check(images) I’m not an expert and the package has not been user tested.
 Accessibility A web site is accessible if everyone can engage with its content.</description>
    </item>
    
    <item>
      <title>Travel the NBA with {rvest}, {leaflet} and {osrm}</title>
      <link>https://www.rostrum.blog/2018/12/24/nba-travel/</link>
      <pubDate>Mon, 24 Dec 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/12/24/nba-travel/</guid>
      <description>Classic Jazz: Stockton to Malone for the dunk (via Giphy)   Note
The original version of this post (December 2018) used the {gmapsdistance} package. I updated it extensively in 2020 to use the {osrm} package, which doesn’t require an API key nor billing details.
 tl;dr The {osrm} R package can retrieve from the OSRM API the travel duration between points.</description>
    </item>
    
    <item>
      <title>Waggle dance with {ggbeeswarm} and {emoGG}</title>
      <link>https://www.rostrum.blog/2018/11/21/waggle-dance/</link>
      <pubDate>Wed, 21 Nov 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/11/21/waggle-dance/</guid>
      <description>A bee scene from irreverent 90s Nicktoon ‘Hey Arnold!’ (via Giphy)  How to plot grouped continuous data? A boxplot lets you show continuous data split by categories, but it hides the data points and doesn’t tell you much about distribution. A violin chart will show the distribution but you still don’t know about the density of data.
Stripcharts show the data for each category as individual points. The points can be layered on top of each other where they take the same Y value and can be stretched arbitrarily along the X axis.</description>
    </item>
    
    <item>
      <title>Teaching R with Pokémon Go data</title>
      <link>https://www.rostrum.blog/2018/11/04/r-train-pkmn/</link>
      <pubDate>Sun, 04 Nov 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/11/04/r-train-pkmn/</guid>
      <description>Psyduck hurt itself in its confusion (via Giphy)  You teach me and I’ll teach you I wrote in a recent post about some training materials I wrote for teaching R Markdown.
Now I’m sharing another thing I made: Beginner R and RStudio Training (featuring Pokémon!). It’s an introduction to R, RStudio, R Projects, directory structure and the tidyverse. It uses Pokémon Go1 data that I collected myself.2
You can:</description>
    </item>
    
    <item>
      <title>Tid-ye-text with geniusr</title>
      <link>https://www.rostrum.blog/2018/06/05/tid-ye-text/</link>
      <pubDate>Tue, 05 Jun 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/06/05/tid-ye-text/</guid>
      <description>Matt Dray
⚠️ Warning: this post contains offensive words. ⚠️
Genius? Kanye West released his latest album – ye – last week1 after a(nother) pretty turbulent and controversial period of his life2. So what’s been on his mind?
I think the real question is why don’t we scrape Yeezus’s lyrics from the web and analyse them using R? Obviously.
 Genius Genius is a website where you can upload and comment on song lyrics.</description>
    </item>
    
    <item>
      <title>Pokéballs in Super Smash Bros</title>
      <link>https://www.rostrum.blog/2018/05/19/pokeballs-in-super-smash-bros/</link>
      <pubDate>Sat, 19 May 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/05/19/pokeballs-in-super-smash-bros/</guid>
      <description>Smash! Super Smash Bros (SSB) is a beat ’em up videogame series featuring characters from various Nintendo franchises and beyond.
The series has featured on Nintendo 64 (Super Smash Bros, 1998), Gamecube (SSB Melee, 2001), Wii (SSB Brawl, 2008), Wii U and 3DS (SSB ‘4’, 2014) and an upcoming title for the Switch console.
The game is popular enough to have resulted in a series of organised tournaments1.
You can fight characters directly but you can also make use of items and weapons from games across the Nintendo universe, such as the mushroom (the Super Mario series), the heart container (Zelda) and the home run bat (EarthBound).</description>
    </item>
    
    <item>
      <title>R Trek: exploring stardates</title>
      <link>https://www.rostrum.blog/2018/04/14/r-trek-exploring-stardates/</link>
      <pubDate>Sat, 14 Apr 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/04/14/r-trek-exploring-stardates/</guid>
      <description>Captain’s log  Star date 71750.51. Our mission is to use R statistical software to extract star dates mentioned in the captain’s log from the scripts of Star Trek: The Next Generation and observe their progression over the course of the show’s seven seasons. There appears to be some mismatch in the frequency of digits after the decimal point – could this indicate poor ability to choose random numbers?</description>
    </item>
    
  </channel>
</rss>