Giter Club home page Giter Club logo

Comments (4)

richardjtelford avatar richardjtelford commented on September 17, 2024

There is also a const argument to autoplot.cca which makes no difference to (scores are identical).

data(dune)
data("dune.env")
CA <- cca(dune)
identical(scores(CA), scores(CA, const = c(2, 1)))

CCA <- cca(dune ~ ., dune.env)
identical(scores(CCA),
          scores(CCA, const = c(2, 1)))

Perhaps the const argument to autoplot.cca can be removed

from ggvegan.

gavinsimpson avatar gavinsimpson commented on September 17, 2024

Thanks Richard. I think it is probably best to remove const from the arguments for both autoplot.rda and autoplot.cca. In the former, as you say, it could be passed via ... if needed and in the latter it is ignored (silently - which is bad).

Whether to remove it or not will depend on whether this is too esoteric an argument to devote attention to in ggevegan?

If we keep it, should it be renamed so that the argument is more meaningful?

from ggvegan.

richardjtelford avatar richardjtelford commented on September 17, 2024

I agree that it is probably best to remove const from both autoplot.rda and autoplot.cca. I have never used this argument before (but there have been a few times when it might have been useful had I found it). If needed, the help for ... could be expanded to give examples of useful arguments in scores.

The argument name is not great, but it is consistent with vegan. Whether it should be renamed there is another question.

from ggvegan.

gavinsimpson avatar gavinsimpson commented on September 17, 2024

Thanks @richardjtelford I decided to keep the const argument in autoplot.rda but pass it along now as you suggested.

from ggvegan.

Related Issues (20)

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.