Comments (5)
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.
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.
@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.
Have a look at the code for the gdm.plot
function. It is in there. It is just an integer.
from gdm.
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)
- subsample argument in formatsitepair does not actually subsample sites
- Installation error on Ubuntu 20.04 with R 4.1.3 HOT 6
- formatsiterepair undefined columns HOT 1
- gdm.varImp sensitive to predictor names HOT 1
- gdm.VarImp failes if the sum of I-spline coefficients for the "Geographic" predictor == 0 HOT 2
- Error when running gdm.varImp() HOT 4
- gdm.varImp() returns NA when using only one covariate HOT 1
- How can I obtain the unique identifiers of the sites that are being compared by the Bray-Curtis index using formatsitepair()
- Possible bug in gdm.varImp HOT 6
- Custom weights - error incorrect number of dimensions HOT 3
- predict error HOT 3
- gdm.varimp error HOT 4
- Can you share a vignette of phylogenetic generalised dissimilarity model with gdm package? HOT 1
- dimname error when predictor gets dropped in gdm.varImp HOT 1
- Error running formatsitepair function HOT 2
- Increasing the number of splines and knots reduces propability of model fitting HOT 3
- Variable importance assessment (knots error) HOT 2
- Using terra() data objects with gdm ver v1.6.0 [e.g., for visualizing Multi-dimensional Biological patterns] HOT 8
- Issue with long vectors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdm.