hcell2xy | R Documentation |
Computes x and y coordinates from hexagon cell id's.
hcell2xy(hbin, check.erosion = TRUE)
hbin |
a object of class |
check.erosion |
logical indicating if only the eroded points
should be returned in the case where |
The hexbin object hbin
contains all the needed information.
The purpose of this function is to reduce storage. The cost is
additional calculation.
A list with two components of the same length as bin$cell
,
x |
|
y |
hexbin
.
x <- rnorm(10000)
y <- rnorm(10000)
plot(x,y, pch=".")
hbin <- hexbin(x,y)
str(xys <- hcell2xy(hbin))
points(xys, cex=1.5, col=2) ; title("hcell2xy( hexbin(..) )", col.main=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.