Giter VIP home page Giter VIP logo

r-tools's Introduction

R-tools for Marine Debris Tracker data

About

A set of scripts to generate useful plots and maps for data acquired from the Marine Debris Tracker. Debris data can be downloaded from the website or if you're looking for long periods of data using my Python SAMDI-get script.

Observations by type

Instructions

Download 2009 US County boundaries dataset and extract the file within the data folder. You should end up with the structure:

./data/tl_2009_us_county/ and all the shp files etc in there.

Run the main.r script and, hopefully, you'll end up with all the generated assets in the output folder.

The original dataset is in ./data/samdi_latest_data_2011_2018.csv feel free to replace it with your own MDT dataset.

Important: I use Gill Sans Nova typeface for all plots and maps. If you don't have Gill Sans Nova locally just replace all occurences of pfamily="serif" in the main.r with your typeface of choice.

Requirements

Packages needed:

  • akima
  • dplyr
  • extrafont
  • ggmap
  • ggplot2
  • lubridate
  • maps
  • RColorBrewer
  • rgdal
  • scales
  • sp
  • tidyr
  • tmap
  • usmap

r-tools's People

Contributors

jordij avatar

Watchers

 avatar  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.