panel.spplot               package:sp               R Documentation

_p_a_n_e_l _a_n_d _p_a_n_e_l _u_t_i_l_i_t_y _f_u_n_c_t_i_o_n_s _f_o_r _s_p_p_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     panel functions for spplot functions, and functions that can be
     useful within these panel functions

_U_s_a_g_e:

     sp.pagefn(n)
     spplot.key(sp.layout, rows = 1, cols = 1)
     SpatialPolygonsRescale(obj, offset, scale = 1, fill = "black", col = "black",
             plot.grid = TRUE, ...)
     sp.lines(obj, col = 1, ...)
     sp.points(obj, pch = 3, ...)
     sp.polygon(obj, col = 1, ...)
     sp.grid(obj, col = 1, alpha = 1,...)
     sp.text(loc, txt, ...)

_A_r_g_u_m_e_n_t_s:

       n: ignored

sp.layout: list; see spplot for definition 

    rows: integer; panel row(s) for which the layout should be drawn 

    cols: integer; panel column(s) for which the layout should be drawn 

     obj: object of class SpatialPolygons-class for
          'SpatialPolygonsRescale'; of class SpatialLines-class,
          Lines-class or Line-class for 'sp.lines' of a class that has
          a coordinates-methods for 'sp.points'; of class
          SpatialPolygons-class for 'sp.polygon'.  When obj is
          character, the actual object is retrieved by 'get(obj)'
          before its class is evaluated.  

  offset: offset for shifting a Rings object 

   scale: scale for rescaling 

    fill: fill color 

     col: line color 

plot.grid: logical; plot through grid functions (TRUE), or through
          traditional graphics functions (FALSE)

     pch: plotting character 

     loc: numeric vector of two elements 

     txt: text to be plotted 

   alpha: alpha (transparency) level 

     ...: arguments passed to the underlying lattice or grid functions

_N_o_t_e:

     The panel functions of spplot, 'panel.gridplot' for grids,
     'panel.pointsplot' for points, or 'panel.ringsplot' for lines or
     rings (polygons) can be called with arguments '(x,y,...)'.
     Customizing spplot plots can be done by extending the panel
     function, or by supplying an sp.layout argument; see the
     documentation for spplot.

     'SpatialPolygonsRescale' scales and shifts an object of class
     SpatialPolygons-class; this is useful e.g. for scale bars, or
     other layout items.

     'sp.lines', 'sp.points', 'sp.polygon' and 'sp.text' plot lines,
     points, rings or text in a panel.

     'spplot.key' draws the 'sp.layout' object at given rows/cols.

     'sp.pagefn' can be passed as a 'page' argument, and will call
     function 'spplot.key' for the last panel drawn on a page.

_A_u_t_h_o_r(_s):

     Edzer J. Pebesma, e.pebesma@geo.uu.nl

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://r-spatial.sourceforge.net/> has a graph gallery with
     examples with R code.

_S_e_e _A_l_s_o:

     spplot, spplot-methods

_E_x_a_m_p_l_e_s:

