MapStamen: An R6 Class to download, view, and save a map based on...

Description Usage Arguments Format Details Value Public Methods Private Methods See Also Examples

Description

MapStamen is an object generator as R6 class. The returnd object is a map which has been downloaded from mapStamen API.

Usage

1
MapStamen(left, bottom, right, top, mapType, Zoom)

Arguments

left

The lowerleft longitude of the area-box to be downloaded.

bottom

The lowerleft latitude of the area-box to be downloaded.

right

The upperright longitude of the area-box to be downloaded.

top

The upperright latitude of the area-box to be downloaded.

mapType

A string indicating the type of map("terrain", "toner",...)

Zoom

zoom level

Format

R6Class object.

Details

MapStamen generates an object as R6 class. The returnd object is a map which has been downloaded from mapStamen API. The object will be constructed by passing the lower left and upperright coordinates of the area of interest. Type of map and the requiered zoom can also be specified as the arguments.#'

Value

A MapStamen class object generated by R6 class "MapStamen".

Public Methods

initializ(left, bottom, right, top =, mapType, Zoom)

This method will be initialized the class generator as the costructor is called. A new object will be generated.

showMap()

This method displays the downloaded map.

saveMap()

This method saves a png file in the working directory.

ClGoodday()

This method display the No. of healthy days in California in 2019.

ClModday()

This method display the No. of moderate days in California in 2019.

ClUnhealthyDay()

This method display the No. of unhealthy days in California in 2019.

Private Methods

getMap()

This method dowloads the map from Stamen API and will be implemented in initialize method.

See Also

http://maps.stamen.com

Examples

1
2
3
myMap = MapStamen$new(left = 86.05, bottom = 27.21,
                               right = 87.81, top = 28.76, mapType = "toner-lite", Zoom = 5 )
                                   

alieti/myMap documentation built on Nov. 2, 2019, 1:40 p.m.