Cumulative output format resulting in NAs when using dismo::predict function in R

127 Views Asked by At

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.

1

There are 1 best solutions below

0
Niza Chiu On

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