plotPenLL            package:tilingArray            R Documentation

_P_l_o_t _t_h_e _l_o_g-_l_i_k_e_l_i_h_o_o_d _a_n_d _p_e_n_a_l_i_z_e_d
_l_o_g-_l_i_k_e_l_i_h_o_o_d_s (_A_I_C, _B_I_C)

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

     Plot the log-likelihood and two versions of penalized
     log-likelihoods (AIC, BIC) for a segmentation object.

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

     plotPenLL(seg, extrabar=numeric(0), type="b", lty=1, pch=16, lwd=2, ...)

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

     seg: A 'segmentation' object.

extrabar: In addition to the location of maximmal BIC, vertical bars
          are drawn at these x-positions as well.

type, pch, lty, lwd, ...: Get passed on to 'matplot'.

_D_e_t_a_i_l_s:

     This function is used in the vignette: _How to use the segment
     function to fit a piecewise constant curve._

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

     The function is called for its side effect, which is creating a
     plot in the current graphics device.

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

     Wolfgang Huber <huber@ebi.ac.uk>

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

       x = rep( sin((0:4)/2*pi), each=3) + rnorm(3*5, sd=0.1)
       res = segment(x, maxseg=8, maxk=15)
       plotPenLL(res)

