.make_spot_vertices | R Documentation |
Compute vertex coordinates for each spot in frame of plot
.make_spot_vertices(spot_positions, vertex_offsets)
spot_positions |
Center for hex, top left for square |
vertex_offsets |
Data frame of (x, y) offsets wrt spot position for each vertex of spot |
Cartesian product of positions and offsets, with coordinates computed as (pos + offset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.