Code Monkey home page Code Monkey logo

Comments (5)

fitzLab-AL avatar fitzLab-AL commented on August 22, 2024 1

This is the code the the gdm.plot function that creates the plot. You can customize as needed.

##plots the compositional dissimilarity spline plot
plot(x$ecological, x$observed, xlab="Predicted Ecological Distance", ylab="Observed Compositional Dissimilarity", type="n", ylim=c(0,1))
points(x$ecological, x$observed, pch=20, cex=0.25, col=plot.color)
overlayX <- seq( from=min(x$ecological), to=max(x$ecological), length=PSAMPLE )
overlayY <- 1 - exp( - overlayX )
lines( overlayX, overlayY, lwd=plot.linewidth )

from gdm.

fitzLab-AL avatar fitzLab-AL commented on August 22, 2024 1

You asked about PSAMPLE, which is defined in gdm.plot.

https://github.com/fitzLab-AL/gdm/blob/master/R/gdm.plot.R

ctrl-F PSAMPLE and you will find it.

from gdm.

Basquill avatar Basquill commented on August 22, 2024

@fitzLab-AL could you please clarify what the PSAMPLE vector is or comes from? I have the code working up to that point (ie., length=PSAMPLE). thanks

from gdm.

fitzLab-AL avatar fitzLab-AL commented on August 22, 2024

Have a look at the code for the gdm.plot function. It is in there. It is just an integer.

from gdm.

Basquill avatar Basquill commented on August 22, 2024

I checked plot.gdm and didn't see an argument for length. Or elsewhere in the gdm 1.6 package info. However, length() is in section 1.5 of Appendix S1 (Mokany et al 2022) and equivalent code on your website. The plot works okay with or without it. In the end, I matched it to the max(gdm$ecological) value for a useful visual. Thanks. I appreciate the assistance.

from gdm.

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.