leafepp: leafepp

View source: R/leafepp.R

leafeppR Documentation

leafepp

Description

template of leaflet map for eppexist or eppproy outputs

Usage

leafepp(x, t, crs, leng = "es", ...)

Arguments

x

List obtained from eppexist or eppproy

t

Character "exist" or "proy" depending of input structure

crs

Coordinate Reference Systems (CRS).

leng

Lenguage of labels. Available english ("en" ) and spanish ("es"). Default "es"

...

leaflet options and parameters

Value

leaflet

Examples

## In case of eppexist

exist <- eppexist(pop = pop_epp, 
                  centers = centers_epp, 
                  crs = sp::CRS("+init=epsg:32721"))
l_epp_exist <- leafepp(exist, t = "exist", crs = sp::CRS("+init=epsg:32721"))

## In case of eppproy

proy <- eppproy(pop = exist$pop_uncover)
l_epp_proy <- leafepp(proy, t = "proy", crs = sp::CRS("+init=epsg:32721"))

RichDeto/EPP documentation built on May 5, 2022, 10:23 p.m.