Re: [maxent] How to extract data for response curves?

787 views
Skip to first unread message

Bede-Fazekas Ákos

unread,
Jun 14, 2022, 3:32:53 AM6/14/22
to max...@googlegroups.com
Dear Niza,

you should pass the "writePlotData=true" parameter to the Maxent.jar to force saving output files containing the data used to make response curves. Then, you can load these data to any software (e.g. R) and plot them (e.g. by ggplot). I think this can be achieved by
ENMevaluate(occ, env, writePlotData = "true")
or
ENMevaluate(occ, env, "writePlotData=true")
, but I'm not familiar with ENMevaluate(). If you use package 'dismo', it works like this:
maxent(x, p, path, args = "writePlotData=true")

HTH,
Ákos Bede-Fazekas
Centre for Ecological Research, Hungary

2022.05.24. 4:53 keltezéssel, chingc...@gmail.com írta:
Hello group,

Is there any way to create response (get output data and save data frame) plots in ggplot2  (get output data and save data frame)? I am using the R package ENMevaluate .

Thank you so much, all the best,


Niza
--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maxent/b8b8f5d3-d1ec-4a63-ab44-9632a589db65n%40googlegroups.com.

Ione Arbilla

unread,
Jul 25, 2022, 12:28:50 AM7/25/22
to Maxent
Hello Niza,

Your suggestion did not work for me in ENMeval but I found how to do it in this link:

https://github.com/jamiemkass/ENMeval/issues/104

You just need to select the model and the variables you are interested in via dismo::response and convert the plot to a data frame. Here is an example of what I did.

best_model<- allmodelsfromenmevaluate@models[[10]]

rainfall_rc_df<-as.data.frame(dismo::response(best_model,var=rainfall))

I did not find how to do all variables at once though, but this could be good enough.

Hopefully, this works for you as well.

Cheers,


Ione


Reply all
Reply to author
Forward
0 new messages