Git Product home page Git Product logo

emodnetbiologymaps's Introduction

EMODnetBiologyMaps

R build status

The goal of EMODnetBiologyMaps is to create ggplot2 maps of using the EMODnet style:

  • Colors follow the EMODnet guidelines
  • The default projection is EPGS:3035: ETRS89-extended / LAEA Europe
  • When the map is saved as .png, the EMODnet logo is pasted in the final map.

Installation

You can install the development version of EMODnetBiologyMaps with:

devtools::install_github("EMODnet/EMODnetBiologyMaps")

Example

  1. Export a gridded abundance map of anchovies (Engraulis encrasicolus):
# devtools::install_github("lifewatch/eurobis")
library(EMODnetBiologyMaps)
library(eurobis)

# Retrieve grid data for "Eriocheir sinensis" (AphiaID = 126426) using the eurobis package
points <- getEurobisGrid(aphiaid = 126426, gridsize = '1d')

# Render ggplot2 map
map <- emodnet_map_plot(points, fill = points$RecordCount,  title = "Engraulis encrasicolus", subtitle = "AphiaID 126426", legend = "Abundance", zoom = FALSE, option = "viridis")

# Save with EMODnet logo
emodnet_map_logo(map, path = "./data-raw/map1.png", width = 198, height = 121, dpi = 300, units = "mm", gravity = "northeast", offset = "+650+200", color = TRUE)

map1

emodnetbiologymaps's People

Contributors

pmjherman avatar salvafern avatar

Watchers

 avatar  avatar  avatar

emodnetbiologymaps's Issues

Dependency on eurobis not needed

As described in #1 , the dependency on the eurobis and therefore on imis packages difficults the installation of the EMODnetBiologyMaps package.

This can by solved by removing the packages from Imports and add to Suggests. With usethis::use_dev_package("package", type = ""Suggests) these are added also to the Remotes section of the DESCRIPTION file.

Potential enhancements

This issue documents the feedback received about the package.

Last update 2020-10-02:

  1. Eurobis package difficults installation. This package is only used for the examples and tests, not needed.
  2. Determine best width and height when printing to .png
  3. Border of rasters are drawn. Include option 'color=NA’ in the ggplot2 command.
  4. Restrict to emodnet colors?
  5. Adjust EMODnet logo
  6. Include all the IHO areas that we’re using for the reporting
  7. Include a standard legend stating that the data are from EMODnet
  8. Extent of the map should be focused on reporting areas.

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.