maptopo                 package:CTFS                 R Documentation

_P_l_o_t _a _C_o_n_t_o_u_r _M_a_p _o_f _T_o_p_o_g_r_a_p_h_y _o_f _a _C_T_F_S _P_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

 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

_D_e_t_a_i_l_s:

     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'.

_V_a_l_u_e:

     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.

_A_u_t_h_o_r(_s):

     Rick Condit and Pamela Hall

_S_e_e _A_l_s_o:

     'map', 'bcitopo.info', 'contour'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     data(bcitopo.info)

     # minimum needed
     maptopo(bcitopo.info$mat)

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

