graph.caltimes            package:gcmrec            R Documentation

_P_l_o_t _o_f _r_e_c_u_r_r_e_n_t _e_v_e_n_t_s

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

     Plots calendar times at succesive recurrences from a data set.
     Information about effective age and categories of covariates are
     allowed.

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

     graph.caltimes(data, var = NULL, effageData = NULL, width = 2, 
             lines = TRUE, sortevents = TRUE, ...)

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

    data: data frame containing id, time, event variables and some
          other covariates

     var: categorical variable  

effageData: effective age function information 

   width: point width 

   lines: Are horizontal lines printed? The default is TRUE 

sortevents: Are events sorted? The default is TRUE 

     ...: other graphical parameters 

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

     # with data in a data frame 
     library(survival)
     data(bladder2)
     bladder2$time<-bladder2$stop-bladder2$start

     graph.caltimes(bladder2)

     # or data in a list

     data(hydraulic)
     graph.caltimes(hydraulic)

     # We can print some covariate as follows:
     graph.caltimes(bladder2,bladder2$rx)

