plot-methods            package:Rtreemix            R Documentation

_M_e_t_h_o_d _f_o_r _v_i_s_u_a_l_i_z_i_n_g _m_u_t_a_g_e_n_e_t_i_c _t_r_e_e_s _m_i_x_t_u_r_e _m_o_d_e_l_s

_D_e_s_c_r_i_p_t_i_o_n:

     Function for visualizing the tree components comprising a
     mutagenetic trees mixture model.   The user can also specify the
     'fontSize' used for the text labels of the nodes and the edges of
     the plotted trees.  Additionally, one can use the parameter 'k' to
     plot a certain tree component from the  mixture model.

_U_s_a_g_e:

     ## S4 method for signature 'RtreemixModel, missing':
     plot(x, y, ...)

_A_r_g_u_m_e_n_t_s:

       x: An 'RtreemixModel' object giving the mixture model that
          should be visualized.

       y: Not specified.

     ...: 'fontSize' is the size of the text labels of the nodes and
          the edges of the tree components. The default value is 8. 'k'
          is a 'numeric' giving the specific tree component from the
          given mixture model that should be plotted. Its value  can be
          from one to the number of tree components in the given model. 

_D_e_t_a_i_l_s:

     The value of 'k' (that gives the tree component to be plotted) can
     take '"integer"' values from one to the number of tree components.

_V_a_l_u_e:

     The method returns a plot of the mixture model model.

_A_u_t_h_o_r(_s):

     Jasmina Bogojeska

_R_e_f_e_r_e_n_c_e_s:

     Learning multiple evolutionary pathways from cross-sectional data,
     N. Beerenwinkel et al.

_S_e_e _A_l_s_o:

     'RtreemixData-class', 'RtreemixModel-class', 'generate-methods'

_E_x_a_m_p_l_e_s:

     ## Generate a random RtreemixModel object.
     rand.mod <- generate(K = 2, no.events = 7, noise.tree = TRUE, prob = c(0.2, 0.8))

     ## Visualize it.
     plot(rand.mod)

     ## Increase the font size of the text labels in the plot.
     plot(rand.mod, fontSize = 10)

     ## Plot the second component of the mixture model rand.mod
     plot(rand.mod, k = 2)

