bubble                 package:gstat                 R Documentation

_C_r_e_a_t_e _a _b_u_b_b_l_e _p_l_o_t _o_f _s_p_a_t_i_a_l _d_a_t_a

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

     Create a bubble plot of spatial data, with options for bicolour
     residual plots (xyplot wrapper)

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

     bubble(data, xcol = 1, ycol = 2, zcol = 3, fill = TRUE, maxsize = 3,
         do.sqrt = TRUE, pch, col = c(2,3), key.entries = quantile(data[,zcol]),
         main, identify = FALSE, labels = row.names(data), ...)

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

    data: data frame from which x- and y-coordinate and z-variable are
          taken

    xcol: x-coordinate column number or (quoted) name 

    ycol: y-coordinate column number or (quoted) name 

    zcol: z-variable column number or (quoted) name 

    fill: logical; if TRUE, filled circles are plotted (pch = 16), 
          else open circles (pch = 1); the pch argument overrides this 

 maxsize: 'cex' value for largest circle 

 do.sqrt: logical; if TRUE the plotting symbol area (sqrt(diameter)) 
          is proportional to the value of the z-variable; if FALSE, the
          symbol size (diameter) is proportional to the z-variable 

     pch: plotting character 

     col: colours to be used; numeric vector of size two: first value
          is for negative values, second for positive values. 

key.entries: the values that will be plotted in the key; by default 
          the five quantiles min, q.25, median q.75, max 

    main: character; plot title 

identify: logical; if true, regular 'plot' is called instead of
          'xyplot', and followed by a call to 'identify()'. 

  labels: labels argument, passed to 'plot' when 'identify' is TRUE

     ...: arguments, passed to 'xyplot', or 'plot' if  identification
          is required. 

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

     returns (or plots) the bubble plot; if 'identify' is TRUE, returns
     the indexes (row numbers, not the row.names shown) of identified
     points.

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

     Edzer J. Pebesma

_R_e_f_e_r_e_n_c_e_s:

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

     'xyplot', mapasp, identify

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

     data(meuse)
     bubble(meuse, max = 2.5, main = "cadmium concentrations (ppm)", 
         key.entries = c(.5,1,2,4,8,16))
     bubble(meuse, "x", "y", "zinc", main = "zinc concentrations (ppm)",
         key.entries =  100 * 2^(0:4))

