hillysilly | R Documentation |
A set of input locations is derived from addresses (or placenames) in 'x'.
hillysilly( x = "Auckland", dimension = 512, width = 5000, ..., triangles = TRUE, alpha = 0.72 )
x |
place names, addresses to be geocoded |
dimension |
size of tiles (number of pixels each side) 1 number (will be repeated) or 2 |
width |
width (and height) of tiles in metres, 1 number (will be repeated) or 2 |
... |
ignored |
triangles |
passed to anglr::as.mesh3d (means quads are used, a literal quad primitive for every tile pixel) |
alpha |
value for transparency (0,1) passed to rgl |
Each location is used to get elevation data in a matrix with 'dimension' for a region around the point of 'width'. These are plotted in a purely graphic space, with a tiling depending on how many addresses are input. Set the dimension of 'x' to specify the tiling layout, i.e. with 'matrix(x,)'.
nothing, use for side-effect of a 3D plot
x <- c("Hobart", "Melbourne", "Sydney", "Brisbane", "Darwin", "Perth", "Adelaide", "Canberra") hillysilly(matrix(x, 2L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.