ArcMapSetup {GCDkit}R Documentation

Drawing Arc GIS shapefiles

Description

This function provides a rudimentary support for drawing Arc GIS-compatible shape files (.shp).

Usage

    ArcMapSetup(object, layers = NULL, map.col = NULL, map.palette = "heat.colours", 
    labels.txt = FALSE, col.txt = "black", cex.txt = 0.5, axes = TRUE, longlat = TRUE, 
    xlab = "Longitude", ylab = "Latitude")

Arguments

object

name of the object to be drawn, normally GCDmap.

layers

names of layers to be drawn.

map.col

a vector with colors specified for each of the polygons.

map.palette

name of a palette to fill the individual polygons by a random colour.

labels.txt

logical; label the individual polygons?

col.txt

colour of these textual labels.

cex.txt

relative size of these textual labels.

axes

logical; should be the axes drawn?

longlat

logical; should be long-lat grid added?

xlab

label for the x axis.

ylab

label for the y axis.

Details

By default, the loadData function of the GCDkit system loads a shape (*.shp) file into a list object called GCDmap. Each layer represents one item.

If required, the longitude-latitude grid is also drawn using the function llgridlines.

Value

None. It just modifies properties of a Figaro object (a map).

Author(s)

Vojtěch Janoušek, vojtech.janousek@geology.cz

This code relies heavily on rgdal and sp packages that were written by Roger Bivand, Edzer Pebesma and their co-workers.

References

None.

See Also

sp readOGR llgridlines loadData assignColVar figaro http://proj.maptools.org.

Examples

    # Example of a public-domain World map
    shp.file<-"world_country_admin_boundary_shapefile_with_fips_codes.shp"
    setwd(earthchem.dir)
    loadData(shp.file)

    windows(7,5)
    figRedraw()
    
    ArcMapSetup(GCDmap,map.palette="heat.colors",labels.txt=TRUE,
        col.txt="darkblue",cex.txt=0.8,axes=TRUE,longlat=FALSE)
    figRedraw()
    
    #Scaling
    figXlim(c(-77,-50))
    figYlim(c(0,30))
    
    # Other Figaro functions should be finally working, too
    figMain("Caribbean and adjacent South America")
    figColMain("darkred")

[Package GCDkit version 6.1 Index]