Compute x, y Coordinates From Hexagon Cell Ids

DESCRIPTION:

Computes x and y coordinates from hexagonal cell indices.

USAGE:

cell2xy(bin) 

REQUIRED ARGUMENTS:

bin
an object of class "hexbin".

VALUE:

a data frame with components x and y containing the cartesian coordinates corresponding to the centers of the hexagonal bins described in bin.

DETAILS:

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))).

REFERENCES:

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.

SEE ALSO:

, , , , , .

EXAMPLES:

x <- rnorm(200); y <- rnorm(200)
bin1 <- hexbin(x,y) 
lattice <- cell2xy(bin1) 
plot(as.list(lattice)) 
hexagons(bin1,density=0,border=T)