Coder Social home page Coder Social logo

nataliedornan / eds-ggplot2-gganimate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allisonhorst/eds-ggplot2-gganimate

0.0 1.0 0.0 42.09 MB

eco-data-sci workshop (January 2019) - basic animated graphics with ggplot2 + gganimate

Home Page: https://github.com/allisonhorst/eds-ggplot2-gganimate

R 0.02% HTML 99.98%

eds-ggplot2-gganimate's Introduction

Animated graphics: intro to ggplot2 with gganimate

Eco-Data-Science session (UCSB Collaboratory, January 15th, 2019)

Prepared by Allison Horst

In this eco-data-sci session, we'll use simple examples to refresh ggplot2 skills, learn some basics of gganimate with ggplot2, and explore a few other useful ggplot tools.

Included:

  • Animated scatterplots
  • Animated line plots
  • Animated ridge plots (ggplot2 + ggridges + gganimate)
  • Easing + tweening options (ease_aes and enter/exit)
  • 4 transition types: transition_states, transition_layers, transition_manual, transition_reveal
  • Repulsive text labels (geom_text_repel)

Required packages:

  • tidyverse
  • ggridges
  • gganimate
  • ggrepel

Install gganimate development version from github:

install.packages('devtools')
devtools::install_github('thomasp85/gganimate')

Data:

Channel Island Fox population data (ci_fox_pop.csv)

Friends of the Channel Island Fox: http://www1.islandfox.org/p/materials.html

Star Wars API ('starwars' in dplyr)

This data comes from SWAPI, the Star Wars API (http://swapi.co/), and exists in dplyr as 'starwars'. More information: https://dplyr.tidyverse.org/reference/starwars.html

Abalone physiology and rings data (abalone.csv):

Accessed from UCI Machine Learning Repository (https://archive.ics.uci.edu/ml/datasets/abalone)

Warwick J Nash, Tracy L Sellers, Simon R Talbot, Andrew J Cawthorn and Wes B Ford (1994), "The Population Biology of Abalone (Haliotis species) in Tasmania. I. Blacklip Abalone (H. rubra) from the North Coast and Islands of Bass Strait", Sea Fisheries Division, Technical Report No. 48 (ISSN 1034-3288)

Original Owners of Database: Marine Resources Division Marine Research Laboratories - Taroona Department of Primary Industry and Fisheries, Tasmania

gganimate_fireworks_small

eds-ggplot2-gganimate's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.