shapeZoom: zoom into ESRI shapefiles

Description Usage Arguments Value Author(s) See Also Examples

Description

uses locator to define zooming area

Usage

1
shapeZoom(shp, Time = 3, steps = 3, ...)

Arguments

shp

Shapefile Object.

Time

Duration of zooming (speed) in seconds.. DEFAULT:5

steps

number of single zoomlevels. DEFAULT:2

...

Further arguments passed to plot.

Value

None - only plots

Author(s)

Berry Boessenkool, berry-b@gmx.de, ca 2012

See Also

berryFunctions::pointZoom for simple scatterplots. changeAttribute and showAttribute for more Shapefile-related operations

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(maptools) # for readShapeSpatial and dataset
xx <- readShapeLines(system.file("shapes/fylk-val.shp", package="maptools")[1],
                     proj4string=CRS("+proj=utm +zone=33 +datum=WGS84"))

windows(record=TRUE)
plot(xx)
shapeZoom(xx)
# With pgUp and Dn, you can zoom out again

plot(xx)
shapeZoom(xx, steps=8)

## End(Not run)

brry/shapeInteractive documentation built on May 13, 2019, 7:54 a.m.