mapComp: Compare map tiles

View source: R/mapComp.R

mapCompR Documentation

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,
  ...
)

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

quiet

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

...

Further arguments passed to pointsMap

Value

List of maps, writes to a pdf

Author(s)

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

See Also

pointsMap

Examples

## 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 Oct. 14, 2023, 6:27 a.m.