[R-sig-Geo] classIntervals issue

Carson Farmer carson.farmer at gmail.com
Thu May 26 19:38:20 CEST 2011


Hi List, not sure if this is *really* an r-sig-geo question, but since
Roger is the maintainer for the classInt package, I thought I'd start
here.

For some reason, whenever creating a classIntervals object, if I try
to print/access said object's "table" attribute for using in a legend
(see p. 79 in ASDA with R), I get the following error message:

> classIntervals(layer$incoming, n=5, style="fisher", cutlabels=TRUE)
style: fisher
      [3,813)  [813,2782.5) [2782.5,6365)  [6365,12569) [12569,20422]
         2993           306            84            20             6
Warning messages:
1: In factorial(n - 1) : value out of range in 'gammafn'
2: In factorial(n - k) : value out of range in 'gammafn'

Can anyone tell me why? For reference, the data that I'm trying to
classify looks like this (nothing too weird that I can see):

> summary(layer$incoming)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
    3.0    43.0    86.0   434.1   263.0 20420.0

> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_IE.utf8       LC_NUMERIC=C
LC_TIME=en_IE.utf8
 [4] LC_COLLATE=en_IE.utf8     LC_MONETARY=C
LC_MESSAGES=en_IE.utf8
 [7] LC_PAPER=en_IE.utf8       LC_NAME=C                 LC_ADDRESS=C
[10] LC_TELEPHONE=C            LC_MEASUREMENT=en_IE.utf8
LC_IDENTIFICATION=C

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

other attached packages:
[1] lattice_0.19-26   classInt_0.1-14   e1071_1.5-25      class_7.3-3
     TeachingDemos_2.7
[6] sp_0.9-80         CircStats_0.2-4   boot_1.2-43       MASS_7.3-13

loaded via a namespace (and not attached):
[1] grid_2.13.0  tools_2.13.0

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/



More information about the R-sig-Geo mailing list