rasterise | R Documentation |
fill tiles with pixel - rasterisation
rasterise(filtered)
filtered |
data.frame with voronoi tile coordinates |
Here, we take our tile cooridnates and fill them with pixels. Essentially, each voronoi tile can be discretised into a series of pixels and we achieve this by reconstructing a polygon from the tesselation coordinates and finding all discrete value that fall within this polygon.
Note that the polygon coordinates need to be "convexified".
Essentially, the order of the coordinates maters here so we
order the coordinates before recontructing the polygon (see
convexify
)
a data frame barcodes and their associated pixels.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.