<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Jff on JLA Data</title>
    <link>/tags/jff/</link>
    <description>Recent content in Jff on JLA Data</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>Jindra Lacko</copyright>
    <lastBuildDate>Fri, 22 Dec 2017 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="/tags/jff/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Pacman!</title>
      <link>/jff/pacman-infographic/</link>
      <pubDate>Fri, 22 Dec 2017 00:00:00 +0000</pubDate>
      
      <guid>/jff/pacman-infographic/</guid>
      <description>In the proof of concept phase of a dashboard project it is often necessary to fill the page with mockup charts and figures. I have found one that not only fills the space, but serves as a reliable icebreak, especially with clients who grew up in the 1980’s and 1990’s.
Resorting to use an image would be cheating, and so the infographic consists only of legit R code.
The code to generate the infographic is following:</description>
    </item>
    
    <item>
      <title>Playstation Infographic</title>
      <link>/jff/playstation-infographic/</link>
      <pubDate>Fri, 22 Dec 2017 00:00:00 +0000</pubDate>
      
      <guid>/jff/playstation-infographic/</guid>
      <description>Another fun infographic - just about the right complexity to pass time on my train commute.
It serves a threefold purpose:
- investigate social impact of playstation ownership (heh…)
- demonstrate centering of a title over an asymetric chart
- practice drawing of pie charts - frowned upon by statisticians, but beloved by business audience
The code to generate the infographic is following:
library(ggplot2) library(grid) library(gridExtra) frmPstation &amp;lt;- data.frame(reason = c(&amp;quot;I don&amp;#39;t have a Playstation&amp;quot;, &amp;quot;I don&amp;#39;t have a girlfriend&amp;quot;), value = c(100,100)) ggpPstation &amp;lt;- ggplot(data = frmPstation, aes(x = value, fill = reason)) + geom_bar(width = 1) + coord_polar(theta = &amp;quot;y&amp;quot;) + theme_void() + theme(legend.</description>
    </item>
    
    <item>
      <title>Dutch Delicacies</title>
      <link>/jff/dutch-food-infographic/</link>
      <pubDate>Mon, 02 Oct 2017 00:00:00 +0000</pubDate>
      
      <guid>/jff/dutch-food-infographic/</guid>
      <description>I have found a new hobby - trying to recreate silly infographics by using ggplot2.
The purpose of this “chart” is twofold:
- demonstrate the relative merits of several Dutch delicacies (the fresh herring is in fact highly palatable, but suffers from a bad rep)
- practice labeling in ggplot and centering chart title
The code to generate the infographic is following:
library(ggplot2) library(grid) library(gridExtra) srcData &amp;lt;- data.frame(duvody = c(&amp;#39;stroopwafels&amp;#39;, &amp;#39;fresh herring&amp;#39;,&amp;#39;the cheese&amp;#39;), hodnoty = c(100, 0, 100)) srcData$duvody &amp;lt;- factor(srcData$duvody, levels = c(&amp;#39;stroopwafels&amp;#39;, &amp;#39;fresh herring&amp;#39;,&amp;#39;the cheese&amp;#39;)) dutchPlot &amp;lt;- ggplot(srcData, aes(x = rev(duvody), y = hodnoty, fill = duvody)) + geom_col(width = 1) + scale_fill_manual(values = c(&amp;#39;the cheese&amp;#39; = &amp;#39;royalblue4&amp;#39;, &amp;#39;stroopwafels&amp;#39; = &amp;#39;red2&amp;#39;, &amp;#39;fresh herring&amp;#39; = &amp;#39;orange1&amp;#39;)) + coord_flip() + theme_light() + theme(axis.</description>
    </item>
    
  </channel>
</rss>