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)

