[BioC] Regarding hexbin in R...

Naomi Altman naomi at stat.psu.edu
Thu Jul 23 22:01:59 CEST 2009


I think the problem is that the data are too sparse.  Hexbin 
essentially creates bins for a histogram, which in the first case 
only has 2 object, total.  Why don't you have a look in "bin" in both 
cases to see what you have.

--Naomi

At 03:36 PM 7/23/2009, Wells Oliver wrote:
>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 at submute.net
>
>         [[alternative HTML version deleted]]
>
>_______________________________________________
>Bioconductor mailing list
>Bioconductor at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/bioconductor
>Search the archives: 
>http://news.gmane.org/gmane.science.biology.informatics.conductor

Naomi S. Altman                                814-865-3791 (voice)
Associate Professor
Dept. of Statistics                              814-863-7114 (fax)
Penn State University                         814-865-1348 (Statistics)
University Park, PA 16802-2111



More information about the Bioconductor mailing list