hillysilly: Plot silly hilly

View source: R/hilly.R

hillysillyR Documentation

Plot silly hilly

Description

A set of input locations is derived from addresses (or placenames) in 'x'.

Usage

hillysilly(
  x = "Auckland",
  dimension = 512,
  width = 5000,
  ...,
  triangles = TRUE,
  alpha = 0.72
)

Arguments

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

Details

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

Value

nothing, use for side-effect of a 3D plot

Examples

x <- c("Hobart", "Melbourne", "Sydney", "Brisbane", "Darwin", "Perth",
"Adelaide", "Canberra")
hillysilly(matrix(x, 2L))

mdsumner/hillysilly documentation built on April 17, 2022, 12:07 a.m.