i: Identify

View source: R/i.R

iR Documentation

Identify

Description

Interactively select an sp or raster object and print the data associated with it. i() only accepts a single input point.

Usage

i(qmap_obj = NULL, i_idx = 1, loc = NULL)

Arguments

qmap_obj

a qmap object from which to identify features.

i_idx

a numeric value specifying which data layer to identify or a character string indicating the name of the layer. Defaults to 1.

loc

A list with an x and y numeric indicating a location. Default is to interactively get loc value until escaped.

Value

Returns NULL. Identified values are printed to the screen.

Examples

## Not run: 
data(lake)
qm<-qmap(list(lake,elev,samples))
i(qm,"lake")
i(qm,"samples")
i(qm,2)

## End(Not run)

jhollist/quickmapr documentation built on Oct. 15, 2023, 10:07 p.m.