<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/datasaurus-now-on-cran/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://itsalocke.com/datasaurus-now-cran/"> R – Locke Data</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div></div>
<p>datasauRus is a package storing the datasets from the paper <a target="_blank" rel="nofollow" href="https://www.autodeskresearch.com/publications/samestats">Same Stats, Different Graphs: Generating Datasets with Varied Appearance and Identical Statistics through Simulated Annealing</a>. It’s a useful package for:</p>
<ol>
<li>Having a dinosaur dataset </li>
<li>Showing a dinosaur related variant of <a target="_blank" rel="nofollow" href="https://en.wikipedia.org/wiki/Anscombe%27s_quartet">Anscombe’s Quartet</a></li>
</ol>
<p>You can now get datasauRus on <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=datasauRus">CRAN</a>, though it might not be on all mirrors just yet.</p>
<pre><code>install.packages(&quot;datasauRus&quot;)
</code></pre>
<h2>Credit</h2>
<p>This package wouldn’t exist without some nifty people:</p>
<ul>
<li><a target="_blank" rel="nofollow" href="http://www.thefunctionalart.com/2016/08/download-datasaurus-never-trust-summary.html">Alberto Cairo</a>, datasaurus creator</li>
<li><a target="_blank" rel="nofollow" href="https://www.autodeskresearch.com/publications/samestats">Justin Matejka and George Fitzmaurice</a>, creator of the datasaurus’ friends</li>
<li>Last but not least, <a target="_blank" rel="nofollow" href="https://twitter.com/LucyStats">Lucy McGowan</a> who probably did more work on the package than I did</li>
</ul>
<h2>Examples</h2>
<p>We’ve already started playing with the datasauRus dataset…</p>
<h3>Me</h3>
<pre><code>library(ggplot2)
library(datasauRus)
ggplot(datasaurus_dozen, aes(x=x, y=y, colour=dataset))+
  geom_point()+
  theme_void()+
  theme(legend.position = &quot;none&quot;)+
  facet_wrap(~dataset, ncol=3)
</code></pre>
<figure class="wp-caption"><img alt="datasauRus dozen!" src="https://i0.wp.com/github.com/stephlocke/datasauRus/blob/master/README/README-unnamed-chunk-2-1.png?w=450&ssl=1" data-recalc-dims="1"><br>
<figcaption class="wp-caption-text">datasauRus dozen!</figcaption>
</figure>
<h3><a target="_blank" rel="nofollow" href="https://twitter.com/ramnath_vaidya">Ramnath</a></h3>
<pre><code>library(ggplot2)
library(datasauRus)
library(gganimate)

p &lt;- ggplot(datasaurus_dozen, aes(x = x, y = y, frame = dataset)) +
  geom_point() +
  theme(legend.position = &quot;none&quot;)

gganimate(p, title_frame = FALSE)
</code></pre>
<div class="wp-video"><video controls="controls" width="450" preload="metadata" class="wp-video-shortcode"><source src="https://video.twimg.com/tweet_video/C-7-5qfWsAAAjx9.mp4?_=2" type="video/mp4"><a target="_blank" rel="nofollow" href="https://video.twimg.com/tweet_video/C-7-5qfWsAAAjx9.mp4">https://video.twimg.com/tweet_video/C-7-5qfWsAAAjx9.mp4</a></video></div>
<h3>In the package</h3>
<p>Every dataset has an example associated with it. These can be found not just in the help files for each dataset but also in a standalone directory (<a target="_blank" rel="nofollow" href="https://github.com/stephlocke/datasauRus/tree/master/inst/examples"><code>inst/examples</code></a>). We’d like to keep building on these so please feel free to add any visualisations you make with the datasets. If you haven’t worked on a package before and want some help, you can <a target="_blank" rel="nofollow" href="https://calendly.com/lockedata/pkgdev">book some time with me</a> to get your dataviz example into the package.</p>
<p>The post <a target="_blank" rel="nofollow" href="http://itsalocke.com/datasaurus-now-cran/">datasauRus now on CRAN</a> appeared first on <a target="_blank" rel="nofollow" href="http://itsalocke.com/">Locke Data</a>. Locke Data are a data science consultancy aimed at helping organisations get ready and get started with data science.</p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://itsalocke.com/datasaurus-now-cran/"> R – Locke Data</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/ZR6ue2lKgSI"></a></div>