x
,
y
Coordinates From Hexagon Cell Ids
x
and
y
coordinates from hexagonal cell indices.
cell2xy(bin)
"hexbin"
.
x
and
y
containing the cartesian coordinates
corresponding to the centers of the hexagonal bins described in
bin
.
The
bin
object contains all the information that is usually needed.
This function reduces storage by allowing the user to call it whenever
the lattice center coordinates are needed.
To plot the hexagonal centers use
plot(as.list(cell2xy(bin)))
.
Carr, D. B., Olsen, A. R. and White, D. (1992). Hexagon mosaic maps for display of univariate and bivariate geographical data. Cartography and Geographics Information Systems, 19, 228-236.
x <- rnorm(200); y <- rnorm(200) bin1 <- hexbin(x,y) lattice <- cell2xy(bin1) plot(as.list(lattice)) hexagons(bin1,density=0,border=T)