make_tmap: Make a tmap object that can be rendered in shiny

View source: R/make_tmap.R

make_tmapR Documentation

Make a tmap object that can be rendered in shiny

Description

This function render a tmap using a shapefile (campania) as background and a table with coordinates for the points.

Usage

make_tmap(data, dotlegend, shp = campania, palette = NULL)

Arguments

data

A dataframe with the coordinates columns(UTM_33T_N and UTM_33T_E) and relative infos.

dotlegend

An informative column used for the legend and for the mapping of the dots (e.g. "Polifenoli_totali" or "Azienda").

shp

A shapefile used for the background in the UTM 33T coordinate system. By default shp = campania (a shapefile saved in .rda format).

palette

A palette name from Color Brewer palettes. The default is NULL (means tmap decides which one to use).

Examples

## Not run: 

output$map1 = make_tmap(
 data = data = dtdrupfilt(), dotlegend = showcolumnmap2()
 )

## End(Not run)




ShinyFabio/OliveHealthR documentation built on May 17, 2023, 1:39 a.m.