[Biomod-commits] Plot error.

J DL jduquelazo at gmail.com
Mon Mar 4 14:11:28 CET 2013


Dear all,

I am running biomod and sometimes I got this error when using the function
"plot"

plot(myExpl)
Error in as.double(y) :
  cannot coerce type 'S4' to vector of type 'double'

 sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United Kingdom.1252
[2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252

attached base packages:
[1] grid      splines   stats     graphics  grDevices
[6] utils     datasets  methods   base

other attached packages:
 [1] lme4_0.999999-0    Matrix_1.0-11
 [3] gdata_2.12.0       rgl_0.93.928
 [5] maptools_0.8-23    car_2.0-16
 [7] gclus_1.3.1        cluster_1.14.3
 [9] ncdf_1.6.6         mgcv_1.7-22
[11] earth_3.2-3        plotrix_3.4-6
[13] plotmo_1.3-2       leaps_2.9
[15] nlme_3.1-108       rgdal_0.8-5
[17] foreign_0.8-52     Hmisc_3.10-1
[19] gam_1.06.2         MASS_7.3-23
[21] biomod2_2.1.7      pROC_1.5.4
[23] plyr_1.8           rpart_4.1-0
[25] randomForest_4.6-7 mda_0.4-2
[27] class_7.3-5        gbm_2.0-8
[29] lattice_0.20-13    survival_2.37-4
[31] nnet_7.3-5         raster_2.0-41
[33] sp_1.0-5           abind_1.4-0

loaded via a namespace (and not attached):
[1] gtools_2.7.0  stats4_2.15.2 tools_2.15.2

The more strange thing is that the code runs properly sometimes and others
does not.

Any clue?

Thanks in advance


More information about the Biomod-commits mailing list