Tuesday, June 2, 2020

Introductory tutorials for the R version of ENMTools

Hey everybody!  I've started recording quick tutorials on the most important bits of ENMTools.  Here's one on how to install ENMTools and all of its dependencies:



And here's one on how to build ENMTools species objects and some quick models:





3 comments:

  1. If anyone has experienced this before then please kindly help, it could be my code too but as for the files, i have stacked rasters in vars, and have presence points in enmtools.species object called BT

    Code:
    my.args = c("betamultiplier=0.5", "autofeature=FALSE", "product=FALSE", "hinge=FALSE", "threshold=FALSE", "quadratic=FALSE", "replicates=10", "randomseed=TRUE", "jackknife=TRUE", "doclamp=FALSE", "extrapolate=FALSE", "applythresholdrule=Equal training sensitivity and specificity")

    bt.mx <- enmtools.maxent(BT, vars, nback = 15000, env.nback = 15000, rts.reps = 0, bg.source = "vars", args = my.args)

    Error:
    unable to find an inherited method for function ‘raster’ for signature ‘"numeric"’

    Thank you.

    Regards

    ReplyDelete
  2. I have also had that same error come up, and have played around with it a little. For me, I only got that error when I used the "replicates" argument, which was the same for the person who posted here: https://github.com/danlwarren/ENMTools/issues/133. In this link, it explains what the issue is, but not the solution, unfortunately. I think I will use dismo directly, instead of ENMTools, since it seems you can't do replicates with ENMTools.

    ReplyDelete
    Replies
    1. Actually, a solution was posted here and I just didn't see it! http://enmtools.blogspot.com/2021/03/doing-replicates-of-enmtools-models.html

      Delete