generateMaps: Generate spatial content for Diatech

Description Usage Arguments Examples

View source: R/generateMap.R

Description

This function will generate the maps and spatial content used in Diatech

Usage

1
generateMaps(set, bounds)

Arguments

set

list containing the data to create the polygons, see examples.

bounds

Boundary matrix, see examples.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data(polydata)

## bourciez bounded
set <- polydata$bourciez$bourciez
names(set) <- c('id', 'x', 'y')
bounds <- polydata$bourciez$bourciezBounds
bourciezMap <- generateMaps(set, bounds)

## dialeb Bounded
set <- polydata$dialeb$dialeb
names(set) <- c('id', 'x', 'y')
bounds <- polydata$dialeb$dialebBounds
bounds <- polydata$dialeb$dialebBounds[c(3, 2, 1, 4, 5, 6, 7, 8)]
dialebMap <- generateMaps(set, bounds)

## bourciez non bounded
set <- polydata$bourciez$bourciez
names(set) <- c('id', 'x', 'y')
bourciezMap <- generateMaps(set)

usobiaga/diatechServer documentation built on May 3, 2019, 2:38 p.m.