Topic: CTFS Plot Maps

Topic Description:

Functions for maps of CTFS plot data. The file map.r has functions for tree distribution maps, including overlays of elevation contours. The file mapresponse.r has functions for creating color or contour maps of any numerical responses, based on the R functions image, contour, and filled.contour.



File: map/map.r

View File Source Download File No help file available

Function: get.filename

Function Description: get.filename

This sets a name for outputting a map (or any graph) to a file. The argument file may be NULL, then the argument species is used to name the file, or if there are more than one species, the word multispp is used. The argument exp is the export type and becomes the extension (ie, .pdf). By default, type assumes a Map, but it can be set otherwise.

Function Arguments:

ArgumentDefault Value
file
path
exp
species
type"Map."

Function Source:

get.filename=function(file,path,exp,species,type="Map.")
{
if(is.null(file))
{
if(length(species)==1) filename=pst(path,species,type,exp)
else filename=pst(path,"multispp",type,exp)
}
else filename=pst(path,file,".",exp)

return(filename)
}