p: Pan the current plot

View source: R/p.R

pR Documentation

Pan the current plot

Description

Interactively reposition the current plot. Works on an existing qmap object. Simply pass that object to p(). A single repositioning results and the extent of the qmap object is changed.

Usage

p(qmap_obj = NULL, loc = NULL)

Arguments

qmap_obj

A qmap object. Optional, but performs better with larger data sets.

loc

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

Examples

## Not run: 
data(lake)
x<-qmap(list(lake,buffer,elev))
p()
## Or
p(x)

## End(Not run)

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