plot-methods            package:fCalendar            R Documentation

_P_l_o_t _M_e_t_h_o_d_s

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

     Plot methods for 'timeDate' objects.

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

     ## S3 method for class 'timeDate':
     plot(x, y, ...)
     ## S3 method for class 'timeDate':
     lines(x, y, ...)
     ## S3 method for class 'timeDate':
     points(x, y, ...)
     ## S3 method for class 'timeDate':
     axis(side, x, at, format = NULL, labels = TRUE, ...)

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

x, y, at: an object of class 'timeDate'. 

    side: an integer specifying which side of the plot the axis is to
          be drawn on. The axis is placed as follows: 1=below, 2=left,
          3=above and 4=right. 

  format: format - format string. 

  labels: either a logical value specifying whether annotations are to
          be made at the tickmarks, or a vector of character strings to
          be placed at the tickpoints. 

     ...: arguments passed to other methods. 

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

     returns a summary report of the details of a 'timeDate' object.
     This includes the starting and end date, the number of dates the
     format and the financial center in use.

_N_o_t_e:

     These S3 methods will become S4 methods in the future.

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

     ## timeCalendar -
        x <- timeCalendar()
        y <- rnorm(12)

     ## Plotting :

        plot(x, y, type = "l")
        points(x, y, pch = 19, col = "red")

        plot(x, y, type = "l", xaxt = "n")
        axis.timeDate(1, at = x[c(1, 3, 5, 7, 9, 11)], format = "%b")
        axis.timeDate(1, at = x[12], format = "%Y")

