mapComp: Compare map tiles

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mapComp.R

Description

Compare map tiles

Usage

1
2
mapComp(lat, long, data, types = NA, progress = TRUE,
  file = "mapComp.pdf", overwrite = FALSE, pargs = NULL, ...)

Arguments

lat, long, data

Coordinates as in pointsMap

types

Character string vector, types for OpenStreetMap::openmap DEFAULT: NA (all current types)

progress

Display progress bar? DEFAULT: TRUE

file

PDF filename. Will not be overwritten. DEFAULT: "mapComp.pdf"

overwrite

Overwrite pdf file? DEFAULT: FALSE

pargs

List of arguments passed to pdf. DEFAULT:NULL

...

Further arguments passed to pointsMap

Value

List of maps, writes to a pdf

Author(s)

Berry Boessenkool, [email protected], Jul 2017

See Also

pointsMap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run:  # Exclude from CRAN checks because of download time
maps <- mapComp(c(52.39,52.46), c(12.99,13.06),
                pargs=list(width=8.27, height=11.96), overwrite=TRUE)

# still need to suppress output to console:
https://stackoverflow.com/questions/45041762/suppress-rjava-error-output-in-console

unlink("mapComp.pdf")

## End(Not run)

brry/OSMscale documentation built on April 18, 2018, 8:23 p.m.