0

I have run a maxent model using the dismo package in R. I am able to use the predict function to view the output format as "raw" or "cloglog" but when I try the "cumulative" format I get "NA" values and a blank output. In summary, this code works fine and produces coloured maps:

mxPred <- predict(object = mx, x = bioRastersClipBiolnoCorr, args=c("outputformat=raw"),
                  filename=paste0(filePath, '/maxent_predictionRAW.tif'), overwrite = TRUE)
plot(mxPred, col=rgb.tables(1000))

mxPredClog <- predict(object = mx, x = bioRastersClipBiolnoCorr, args=c("outputformat=cloglog"),
                      filename=paste0(filePath, '/maxent_predictionCLOG.tif'), overwrite = TRUE)
plot(mxPredClog, col=rgb.tables(1000))

This code produces no map, just NA values and a blank plot:

mxPredCumu <- predict(object = mx, x = bioRastersClipBiolnoCorr, args=c("outputformat=cumulative"),
                  filename=paste0(filePath, '/maxent_predictionCUMU.tif'), overwrite = TRUE)
plot(mxPredCumu, col=rgb.tables(1000))

Please help, thank you.

Kate Dey
  • 1
  • 2

1 Answers1

0

Only raw, clolog, or logistic can be set in output format. Choose raw then convert the output to cumulative format. See details.

user438383
  • 5,716
  • 8
  • 28
  • 43
Niza Chiu
  • 1
  • 1