writeMaps: Write generated maps

Description Usage Arguments Examples

View source: R/generateMap.R

Description

Write generated maps

Usage

1
writeMaps(map, neighPath, jpegPath, polySvgPath, centSvgPath, honeSvgPath)

Arguments

map

resulting from generateMaps function.

neighPath

path where the binary data for neighbours will be saved.

jpegPath

path where the jpeg map will be saved.

polySvgPath

path where the svg with the Polygon map will be saved.

centSvgPath

path where the svg with the Centroid map will be saved.

honeSvgPath

path where the svg witht he Honecomb map will be saved.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run:  ## Not run:

data(polydata)

## bourciez bounded
set <- polydata$bourciez$bourciez
bounds <- polydata$bourciez$bourciezBounds
names(set) <- c('id', 'x', 'y')
map <- generateMaps(set, bounds)
writeMaps(map, 'nb.rda', 'map.jpeg', 'polygon.svg', 'cetroid.svg', 'honeycomb.svg')

## dialeb Bounded
set <- polydata$dialeb$dialeb
names(set) <- c('id', 'x', 'y')
bounds <- polydata$dialeb$dialebBounds
map <- generateMaps(set, bounds)
writeMaps(map, 'nb.rda', 'map.jpeg', 'polygon.svg', 'cetroid.svg', 'honeycomb.svg')

## End(**Not run**)

## End(Not run)

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