iNZightMap | R Documentation |
Create an iNZight Map Object and pass to the plot
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()
)
lat |
a formula specifying the name of the latitude variable in |
lon |
a formula specifying the name of the longitude variable in |
data |
a data frame |
name |
the name of the data set |
x |
an |
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 |
env |
Environment to evaluate |
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.
data frame object with class inzightmap
plot(inzightmap)
: Plot an inzightmap
object
Tom Elliott
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.