Learn R Programming

OSMscale (version 0.5.23)

mapComp: Compare map tiles

Description

Compare map tiles

Usage

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

Value

List of maps, writes to a pdf

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 unless overwrite=TRUE. DEFAULT: "mapComp.pdf"

overwrite

Overwrite pdf file? DEFAULT: FALSE

pargs

List of arguments passed to pdf. DEFAULT:NULL

quiet

Logical: suppress non-df warning in getColumn? DEFAULT: FALSE

...

Further arguments passed to pointsMap

Author

Berry Boessenkool, berry-b@gmx.de, Jul 2017

See Also

pointsMap

Examples

Run this code
if (FALSE)  # 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")


Run the code above in your browser using DataLab