timeplot                package:ssEDA                R Documentation

_P_l_o_t_s _E_v_e_n_t _F_r_e_q_u_e_n_c_i_e_s _b_y _T_i_m_e

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

     Plots a histogram of the number of selected events by time
     interval, either months or years.

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

     timeplot(events, yearly=TRUE, smoothline=FALSE, ymax=NA)

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

  events: defines the events to be plotted. It is an object of class
          '"subset"', generally created by 'subsetcircle',
          'subsetpolygon', 'subsetrect' or 'subsetsphere'. 

  yearly: boolean. Should each bar represent annual 'TRUE' or monthly
          'FALSE' counts. Default is 'TRUE'. 

smoothline: boolean. Plot a smoothed line over the counts. Default is
          'FALSE'. The smoothing is done using the function 'supsmu'
          which is contained in the package modreg. 

    ymax: numeric, default is 'NA'. Sets the upper limit of the y axis
          for the bar plot. 

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

     'depth.hist', 'freq.cusum', 'freq.magnitude', 'magnitude.cusum',
     'magnitude.time', 'epicentres', 'threeD', 'rotation', 'multigraph'

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

     #    This example requires the NZ catalogue

     require(ssNZ)

     b <- subsetrect(NZ, minday=julian(1,1,1961), minmag=4,
                      minlat=-50, maxlat=-33.5, minlong=165, maxlong=180)
     timeplot(b)
     title(main=expression(paste("Events in NZ With ", M[L] >= 4)))

