search4map: Function for 'mapdata' dearch

Description Usage Arguments Value Author(s) See Also Examples

View source: R/minorFuns.R

Description

This function should simplify the search of a 'mapdata'-based extent

Usage

1
search4map(pattern="",database='worldHires',plot=FALSE)

Arguments

pattern

a regular expression used with ?grep

database

Character. Default id "worldHires", but see ?map for available once.

plot

Logical. Default FALSE, should the function plot you search?

Value

List of length=2. 1: the call to use to generate the given map. 2: The names of the areas within that search

Author(s)

Matteo Mattiuzzi

See Also

getTile,?map,?grep

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

search4map()

search4map(pattern="USA",plot=TRUE)
search4map(database="state",plot=TRUE)?map

search4map(database="italy",pattern="Bolz",plot=TRUE)

search4map(pattern="Sicily",plot=T)



## End(Not run)

MODIS documentation built on May 2, 2019, 6:09 p.m.

Related to search4map in MODIS...