Giter Club home page Giter Club 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.

atlasr's People

Contributors

antarcticben avatar jiho avatar raymondben avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

majoudismail

atlasr's Issues

gdmfuncs.1.1.R

Does anyone know where I can find the gdmfuncs.1.1.R? The biomaps.net.au does not seem to be live anymore.

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

Thanx
Luca

ggplot error

Bonsoir,

I want to report a small bug related with ggplot2 (probably in this file: https://github.com/jiho/atlasr/blob/master/library/lib_brt.R line: 1092). Normaly it works ok, but I have some set of data that crash brt() as bellow:

...
-> Read environment data
  |============================================================================| 100%
-> Fetch environment data for points in input_data
-> Run BRT for stomiidae_chauliodus_sloani
   setup data
   fit BRT model
   compute diagnostics
   plot results
Error in arrangeGrob(..., as.table = as.table, clip = clip, main = main,  : 
  input must be grobs!
In addition: Warning messages:
1: In min(ranges$V1) : no non-missing arguments to min; returning Inf
2: In max(ranges$V2) : no non-missing arguments to max; returning -Inf
>

btw. to fix it maybe this link would be helpful: http://stackoverflow.com/questions/8112208/how-can-i-obtain-an-unbalanced-grid-of-ggplots

Bien cordialement,
Martin

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.