Hello,
while making some choropleth maps wit R (version 3.0 under Windows7) I ran into an issue with function classIntervals (in package classInt):
I'm not able to change the character string value for "over"/"under"/"between" in printed table labels.
For example:
library(classInt)
data(jenks71)
classIntervals(jenks71$jenks71, n = 5, style = "equal")
style: equal
one of 3,921,225 possible partitions of this variable into 5 classes
[15.57,43.516) [43.516,71.462) [71.462,99.408) [99.408,127.354) [127.354,155.3]
35 44 17 4 2
classIntervals(jenks71$jenks71, n = 5, style = "equal", between = "-")
style: equal
one of 3,921,225 possible partitions of this variable into 5 classes
[15.57,43.516) [43.516,71.462) [71.462,99.408) [99.408,127.354) [127.354,155.3]
35 44 17 4 2
--> It seems to me that arguments "over"/"under"/"between" are being ignored, setting them has no effect on the output?
I tried with findColours as well, also with no effect:
x <- classIntervals(jenks71$jenks71, n=5, style="equal")
findColours(x, pal = 1:5, between = "-")
[...]
attr(,"table")
[15.57,43.516) [43.516,71.462) [71.462,99.408) [99.408,127.354) [127.354,155.3]
35 44 17 4 2
I have seen examples (Fig. 3.5 in the book "Applied Spatial Data Analysis with R") where classIntervals has behaved differently (?), so maybe something has changed here, or I am missing something?
What can I do to make this work?
Kind regards,
Heinrich.