Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created May 3, 2017 22:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ramnathv/fec2cf0a5c51c190bbe2ce76359f055e to your computer and use it in GitHub Desktop.
Save ramnathv/fec2cf0a5c51c190bbe2ce76359f055e to your computer and use it in GitHub Desktop.
Datasaurus in R
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment