degAxis                  package:sp                  R Documentation

_a_x_i_s _w_i_t_h _d_e_g_r_e_e_s

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

     draw axes on a plot using degree symbols in numbers

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

     degAxis(side, at, labels, ...)

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

    side: integer; see axis

      at: numeric; if missing, axTicks is called for nice values; see
          axis

  labels: character; if omitted labels are constructed with degree
          symbols, ending in N/S/E/W; in case of negative degrees, sign
          is reversed and S or W is added; see axis

     ...: passed to the actual axis call

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

     axis is plotted on current graph

_N_o_t_e:

     decimal degrees are used if variation is small, instead of minutes
     and seconds

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

     xy = cbind(x = 2 * runif(100) - 1, y = 2 * runif(100) - 1)
     plot(SpatialPoints(xy, proj4string = CRS("+proj=longlat")),xlim=c(-1,1),ylim=c(-1,1))
     degAxis(1)
     degAxis(2, at = c(-1,-0.5,0,0.5,1))
     #

