mapGrob                package:gmaps                R Documentation

_M_a_p _g_r_i_d _g_r_a_p_h_i_c_s _o_b_j_e_c_t_s

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

     mapGrob is the representation of a map object in the grid graphics
     system.

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

     mapGrob(
             database = "world", 
             regions=".",
             exact=F,
             xlim=NULL,
             ylim=NULL,
             name=NULL,
             fill.col=NA,
             gp=NULL,
             vp=NULL,
             asp=1,
             ...) 
     grid.mapGrob(...)
     validDetails.mapGrob(x)

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

database: Any of the valid maps databases.

 regions: A vector of the regions to be included in the map.

   exact: A logical specifying if regions should be matched exactly or
          partially.

    xlim: x range on the map objecct, ussually correspondes to
          longitude.

    ylim: y range on the map objecct, ussually correspondes to
          latitude.

    name: the name of the object.

fill.col: color to use to fill the map with. Superceeds 'gp\$fill' if
          specified.

      gp: grid graphics parameters, ie. a gpar object.

      vp: Viewport for the object.  used to embed within other objects.

     asp: aspect ratio for the map.

     ...: other parameters passed onto the map function.

       x: A mapGrob object

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

     'grid', 'maps'

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

     #The four corners area of the United States colored.
     grid.mapGrob("state",c("utah","new mexico","arizona","colorado"),fill.col=rainbow(4))

