ENMTools
ENMTools copied to clipboard
Generic interactive plots function
It could be nice to have a single function called "interactive.plots" or something like that that takes models, species, and test results (when appropriate) and calls a dedicated interactive plot function based on that class.
It'd be super nice to set up some sort of interactive plots replacement for the rangebreak functions too, come to think of it. Something that plots the lines/ribbons/blobs for each replicate.
We could also use an interactive plot for clade objects that plots each species with a different color point.
Hi Dan,
I agree with all of these suggestions. As for the first one, I've just been learning how to define new functions that use S3 methods, so I think I'll try and implement that for interactive.plot. I haven't worked with the rangebreak stuff before, but I'm sure I can figure out something based on the vignette. And yes, it should support enmtools.clade object. That one should be pretty easy. I'll add a parameter to control the suitability opacity while I'm at it.
Oh cool, so defining a new type of S3 generic function? That'd be awesome. I was thinking of just having a wrapper function that checked classes and called the correct specific function, but if there's something S3-ish we can do so much the better.
Also it just occurred to me that interactive model plots should plot test data points in a different color if possible.
Figuring out a way to plot enmtools.clade objects like this would be awesome:
http://blog.phytools.org/2019/03/projecting-phylogenetic-tree-onto-map.html?m=1