Coder Social home page Coder Social logo

atlasr's Introduction

License and citation

This code is licensed under a Creative Commons Attribution 3.0 Unported license (CC BY 3.0, http://creativecommons.org/licenses/by/3.0/). It allows you to use, share and remix the code as long as you cite us in the following way:

J-O Irisson, S Mormede, B Raymond (alphabetical order). atlasr: R code for ecoregionalisation. https://github.com/jiho/atlasr.

The data layers downloaded automatically by this code are under a Polar Information commons license http://polarcommons.org/ethics-and-norms-of-data-sharing.php and copyright Ben Raymond. The PIC license have similar terms to the CC BY license.

The GDM computation functions (files gdmfuncs.1.1.R and gdmlib.dll) are downloaded from http://www.biomaps.net.au/gdm/, retain their original license and should be cited as advised on the original page.

How to get started

The scripts are all written in R and should work on all platforms, provided that you have the right setup.

Pre-requisites

Install R and associated tools

Go to the R download site and download R for your system.

  • Mac OS X users, you should get the R-**.pkg as well as tcltk-**.pkg in the tools subdirectory further down the page. Installing is just a matter of double-clicking and saying OK to everything.

  • Windows users, you should select the base subdirectory and then the main Download R ** for Windows link. Install with the default choices everywhere.

  • Linux users, you should get it from your package management system rather than from the above site. The package is usually called R-cran.

We recommend using a specialized editor on top of R, which will become your only interface to R. Download and install RStudio; on the download page, select RStudio Desktop and it should detect your operating system and present the appropriate file for you on the next page.

Download the latest version of the scripts

These scripts are rapidly evolving (at times...) and the latest version is always kept on this page (https://github.com/jiho/atlasr). You can download a zip file using the ZIP button or directly at the address:

https://github.com/jiho/atlasr/zipball/master

Unzipping the file should create an atlasr directory with all the scripts.

Run an analysis

Double-click the atlasr.Rproj project file inside the atlasr directory. This will start RStudio and load R in the appropriate location. Load all functions and update the environemental data repository by typing the following command in the "Console" section:

source("initialize.R")

The first time you do this, it will be quite long (over an hour) because it will download all necessary R packages and all environment data layers (well over a Gb of data). In R's console type the command you want to run. These are for example:

do.bioreg()
do.brt()
do.gdm()

Read documentation

For some analyses, documentation is provided in the documentation directory.

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.