datasauRus now on CRAN

May 9, 2017
By

(This article was first published on R – Locke Data, and kindly contributed to R-bloggers)

datasauRus is a package storing the datasets from the paper Same Stats, Different Graphs: Generating Datasets with Varied Appearance and Identical Statistics through Simulated Annealing. It’s a useful package for:

  1. Having a dinosaur dataset
  2. Showing a dinosaur related variant of Anscombe’s Quartet

You can now get datasauRus on CRAN, though it might not be on all mirrors just yet.

install.packages("datasauRus")

Credit

This package wouldn’t exist without some nifty people:

Examples

We’ve already started playing with the datasauRus dataset…

Me

library(ggplot2)
library(datasauRus)
ggplot(datasaurus_dozen, aes(x=x, y=y, colour=dataset))+
  geom_point()+
  theme_void()+
  theme(legend.position = "none")+
  facet_wrap(~dataset, ncol=3)
datasauRus dozen!
datasauRus dozen!

Ramnath

library(ggplot2)
library(datasauRus)
library(gganimate)

p <- ggplot(datasaurus_dozen, aes(x = x, y = y, frame = dataset)) +
  geom_point() +
  theme(legend.position = "none")

gganimate(p, title_frame = FALSE)

In the package

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 (inst/examples). 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 book some time with me to get your dataviz example into the package.

The post datasauRus now on CRAN appeared first on Locke Data. Locke Data are a data science consultancy aimed at helping organisations get ready and get started with data science.

To leave a comment for the author, please follow the link and comment on their blog: R – Locke Data.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)