Giter Site home page Giter Site logo

pedroj / effectiveness_pckg Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 4.0 930 KB

An R package for plotting the effectiveness landscape of plant-animal mutualisms.

Home Page: http://pedroj.github.io/effectiveness/

R 0.94% HTML 99.06%
ecology seed-dispersal seed-dispersal-effectiveness mutualistic-networks effectiveness-landscape plotting

effectiveness_pckg's Introduction

The effectiveness package

DOI Build Status

This is effect.lndscp, an R package for plotting the effectiveness landscape of mutualisms adding isolines of equal effectiveness values.

Effectiveness landscapes are the two-dimensional representation of the possible combinations of the quantity and the quality of mutualistic services (seed dispersal, pollination) and with elevational contours representing isoclines of effectiveness. These representations can be 2D bivariate plots of multiplicative effects of any of the seed dispersal (SDE) or pollination (PE) effectiveness components.

Installation

devtools::install_github("pedroj/effectiveness_pckg")

Usage

library(effect.lndscp)

Based on a dataset of Cecropia glaziovii frugivores. In this example we build the effectiveness landscape just for the quantitative component, plotting its two subcomponents, visitation rate and per-visit effectiveness.

data(cecropia)
effectiveness_plot(cecropia$totvis, cecropia$totbic, 
    myxlab = "No. visits/10h", 
    myylab = "Effectiveness/vis (No. fruits handled)")

Based on a dataset of Prunus mahaleb frugivores.

data(prunus)
effectiveness_plot(prunus$visits, prunus$eff_per_vis, 
   pts.shape = prunus$group, label = prunus$animal,  
   myxlab = "No. visits/10h", 
   myylab = "Effectiveness/vis (No. fruits handled)")

For additional details please visit the web page here.

References

Schupp, E.W., Jordano, P. & Gómez, J.M. (2017). A general framework for effectiveness concepts in mutualisms. Ecology Letters, 20, 577–590. doi: 10.1111/ele.12764

Schupp, E.W., Jordano, P. & Gómez, J.M. (2010) Seed dispersal effectiveness revisited: A conceptual review. New Phytologist, 188, 333–353.

Schupp, E.W. (1993) Quantity, quality and the effectiveness of seed dispersal by animals. In: Frugivory and seed dispersal: ecological and evolutionary aspects (eds T.H. Fleming & A. Estrada), pp. 15–29. Springer, Dordrecht; The Netherlands.

Jordano, P. & Schupp, E.W. (2000) Seed disperser effectiveness: The quantity component and patterns of seed rain for Prunus mahaleb. Ecological Monographs, 70, 591–615.

effectiveness_pckg's People

Contributors

imgbotapp avatar pakillo avatar pedroj avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

effectiveness_pckg's Issues

Aesthetics issues

List of possible things to further implement the function:

  • Error bars - when included and go out of the graph limits causes visualization problems
  • Values for isolines (QC) - possibility to move further right?
  • Avoid too much clustering - ggrepel options possibility to modify
  • Possibility to not show grouping by shape, i.e. all points equal. Or to group by colors instead of shapes - include legend for the grouping factor

Including error bars

To implement the function I have add another function of ggplot2 to include the error bars.

But there is still a problem. When the error bars surpass the y axis they dont appear, e.g. for Brotogeris and Pyhrrura

Here an example:
Cecropia RPE.zip

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.