iNZightMap: Create an iNZight Map Object

View source: R/mapobject.R

iNZightMapR Documentation

Create an iNZight Map Object

Description

Create an iNZight Map Object and pass to the plot

Usage

iNZightMap(lat, lon, data, name = deparse(substitute(data)))

## S3 method for class 'inzightmap'
plot(
  x,
  opacity,
  map.zoom = -1,
  type = c("terrain", "terrain-background", "terrain-labels", "terrain-lines", "toner",
    "toner-2010", "toner-2011", "toner-background", "toner-hybrid", "toner-labels",
    "toner-lines", "toner-lite", "watercolor"),
  ...,
  env = parent.frame()
)

Arguments

lat

a formula specifying the name of the latitude variable in data

lon

a formula specifying the name of the longitude variable in data

data

a data frame

name

the name of the data set

x

an inzightmap object

opacity

character or expression of the variable name to code point opacity by

map.zoom

the level of zoom to use; this should depend on the scales unless specified

type

the type of map to download from Google

...

additional arguments passed to iNZightPlot

env

Environment to evaluate iNZightPlot in

Details

The plot will download a map that contains all of the points. The size is limited by the fixed zoom levels provided by Google's Static Maps API.

Value

data frame object with class inzightmap

Functions

  • plot(inzightmap): Plot an inzightmap object

Author(s)

Tom Elliott


iNZightVIT/iNZightMaps documentation built on May 4, 2024, 6:17 a.m.