maptopo {CTFS} | R Documentation

## Plot a Contour Map of Topography of a CTFS Plot

### Description

Draws a contour plot (default to 5 m intervals) for a CTFS Plot. This function can be run independently or in order to add a contour plot to a plot of the tree location of a species. The defaults provide a “nice” plot.

### Usage

    maptopo(elevmat, plotdim = c(1000, 500), add = FALSE, export = "no",
            interval = 0, maintitle = "Topographic Contours",
            ht = 6, wd = 9, plotside = 4.5, filename = "maptopo")

### Arguments

`elevmat` | matrix of elevation data, preferably at 5 x 5 m scale, usually the matrix component of the list `bcitopo.info`
`plotdim` | vector of 2 numbers, maximum x, y dimensions of plot in m
`add` | logical, TRUE = add contour plot to tree plot, only for use when NOT run independently, FALSE = for making contour plot only
`export` | character, indicating whether to plot to window or save as file. Possible values are: “`no`”, “`bmp`”, “`jpg`”, “`emf`”, “`pdf`”
`interval` | contour line intervals
`maintitle` | character string, main title for plot
`ht` | height of graphics window, in inches
`wd` | width of graphics window, in inches
`plotside` | size of plot within the graphics window
`filename` | default filename for export

### Details

This function can be run independently to just produce a contour plot or can be called from `map` to add a contour plot to a plot of tree location for a species.

Make sure that `elevmat` is a matrix. In most cases this would be the matrix component of the list `bcitopo.info`.

### Value

If `export=`“`no`” then a map is plotted in a window and all information requested in plotted in the window. If the user choses to export the file, then the same plot on the screen will be saved in a file in the working directory in the format of the users choice. See above for file name creation.

### Author(s)

Rick Condit and Pamela Hall

### See Also

`map`, `bcitopo.info`, `contour`

### Examples

    ## Not run:
    data(bcitopo.info)

    # minimum needed
    maptopo(bcitopo.info$mat)

    # for export just add:
    maptopo(bcitopo.info$mat,export="pdf")
    ## End(Not run)

[Package CTFS version 1.00 Index]