multimap: Create multimap.

Description Usage Arguments Author(s) See Also Examples

Description

Display or save multimaps.

Usage

1
2
3
multimap(listfiles, names, outname, org, outext = "show",
    title = "multimap", shapefile = NULL, shapedir = NULL,
    shapeext = "shp", pal = "Spectral",  ...) 

Arguments

listfiles

vector with path to the maps to be plotted together (geotiff files).

names

names of the different maps (display at the top of them).

outname

name of the file where the multi-map is saved (without extension).

org

a two dimensions vector indicating the layout of the maps.
The first number is the number of rows, the second the number of columns.

outext

extension of the created map.
If outext = "show", the map is displayed in the R graphics console.
Choose between "jpg", "png" or "pdf" to save the map in the corresponding format.
By default, outext = "show".

title

title of the multi-map.
By default, title="multimap".

shapefile

name of the shape/kml file with objects (points or polygons) to be displayed on the maps.
For a shapefile called ‘name.shp’ , shapefile="name".
For a kml file, write the name of the layer.
If shapefile=NULL, no object will be added to the map.
By default, shapefile=NULL.

shapedir

path to the shape/kml file.
For a shapefile, shapedir is the path to the folder containing the shapefile. For example if the directory of the shapefile is ‘C:/Dir/name.shp’, shapefile="C:/Dir/".
For a kml file, shapedir is the full directory of the kml file. For example shapefile="C:/Dir/name.kml".
If shapedir=NULL, no object will be added to the map. By default, shapedir=NULL.
Please note that paths to files in R can be specified with either "/" or "\\" in Windows OS and "/" in UNIX OS.

shapeext

extension of the shape/kml file : "shp" for a Esri shapefile or "kml" for a kml file from Google earth .
By default, shapeext = "shp".

pal

name of the palette of colors used to make the map from the package RColorBrewer.
To see the different palettes available for your map, please type display.brewer.all().
By default, pal="Spectral".

...

further arguments sent to spplot.

Author(s)

Romain Frelat and Bruno Gerard.

See Also

savemap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#local variables
ndvidirectory=paste(system.file("extdata/VITO_Mzimba",
    package="ndvits"), "/", sep="")
region="Mzimba"
label=month.abb

#making the list of map to plot together
listname=c()
for (i in 1:12) {
listname=c(listname,timetoMap(ndvidirectory,region, 2004,i,1))
}

#executing multimap function
multimap(listname, label, outname="Mzimba2004", org=c(4,3),
    title = "NDVI values during 2004 in Mzimba")

#adding points to the maps
shape="SLP_Mzimba"
shapedir=paste(system.file("extdata/shape", package="ndvits"),
    "/", sep="")
multimap(listname, label, outname="Mzimba2004", org=c(4,3), 
    title = "NDVI values during 2004 in Mzimba", shapefile=shape,
    shapedir=shapedir)

ndvits documentation built on May 2, 2019, 4:47 p.m.

Related to multimap in ndvits...