Entering edit mode
Wells Oliver
▴
20
@wells-oliver-3589
Last seen 10.2 years ago
Hello all. I'm trying to figure out why plotting one hexbin will work
and
one will not.
The broken one:
library(hexbin)
hits = list(x=c(121.48999999999999, 34.140000000000001),
y=c(99.400000000000006, 66.269999999999996))
bin <- hexbin(hits$x, hits$y)
plot(bin)
Yields:
Error in cut.default(rcnt, colorcut, labels = FALSE) :
invalid number of intervals
However,
hits = list(x=rnorm(1000), y=rnorm(1000))
bin <- hexbin(hits$x, hits$y)
plot(bin)
Works fine. The thing is printing hits in the former and latter
instances
both yield a similar data structure. Any ideas? Thank you.
--
Wells Oliver
wells@submute.net
[[alternative HTML version deleted]]