mRagraph             package:classGraph             R Documentation

_C_o_n_s_t_r_u_c_t _a _L_a_i_d-_O_u_t _G_r_a_p_h _f_o_r _P_l_o_t_t_i_n_g

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

     My constructor of an 'Ragraph' object, a kind of "laid-out" graph,
     from package 'Rgraphviz'.  This allows more customization in
     plotting than just calling 'plot(gr, ...)' for a 'graph' object
     from package 'graph'.

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

     mRagraph(gr, lType, fixedsize = FALSE,
              fill = c("lightblue", "gray90"),
              color = c("blue3", "gray60"),
              labcol = c("blue3", "green4", "purple"))

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

      gr: an R object of class 'graph' (from package 'graph'), in our
          case typically the result of 'classTree()'.

   lType: a string specifying the layout type, see 'agopen()' in
          package 'Rgraphviz' for the possibilities.

fixedsize: logical indicating if the ellipses should all get the same
          size - or should rather adapt to the situation.

    fill: character vector of length 2....

   color: character vector of length 2....

  labcol: vector of labels to be used ....

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

     an object of class 'Ragraph', produced by an appropriate call to
     'agopen'.

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

     Martin Maechler

_S_e_e _A_l_s_o:

     the customized plotting function 'plotRag'.

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

       if(require("Matrix")) {
         trMatrix <- classTree("Matrix")
         trMatrix
         RtrM <- mRagraph(trMatrix)
         RtrM # (the show method will hopefully improve)
         str(RtrM, max=2) # shows a bit more

         plot(RtrM)
       }

