l: Label features

Description Usage Arguments Examples

View source: R/l.R

Description

It is useful to be able to provide labels to features on your map when examining the results of given analysis. This function adds labels for a given layer (currently just point or polygon layers).

Usage

1
l(qmap_obj, field = NULL, layer = 1)

Arguments

qmap_obj

a qmap object from which to pull the labels. Raster layers are ignored. Will also accept sp objects.

field

a field in the sp object to use to label the features. Defaults to row.names().

layer

identify which sp layer to label. Defaults to first layer in qmap_obj$map_data.

Examples

1
2
3
4
5
6
7
8
## Not run: 
data(lake)
qm<-qmap(lake,width,buffer)
l(qm,'COMID')
l(qm, layer = 2)
l(qm, layer = "buffer")

## End(Not run)

quickmapr documentation built on May 2, 2019, 3:29 p.m.