Description Usage Arguments Author(s) See Also Examples
Display or save multimaps.
1 2 3 |
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. |
outext |
extension of the created map. |
title |
title of the multi-map. |
shapefile |
name of the shape/kml file with objects (points or polygons) to be displayed on the maps. |
shapedir |
path to the shape/kml file. |
shapeext |
extension of the shape/kml file : "shp" for a Esri shapefile or "kml" for a kml file from Google earth . |
pal |
name of the palette of colors used to make the map from the package RColorBrewer. |
... |
further arguments sent to |
Romain Frelat and Bruno Gerard.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.