plotRag              package:classGraph              R Documentation

_P_l_o_t _a_n _R_a_g_r_a_p_h (_u_s_i_n_g _R_g_r_a_p_h_v_i_z)

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

     Plot an 'Ragraph' object (a kind of "laid-out" graph, from package
     'Rgraphviz').  This the simply uses the 'plot' method from package
     'Rgraphviz' (i.e., 'selectMethod(plot, "Ragraph")') and
     additionally adds a "footnote"-like subtitle.

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

     plotRag(ragr, sub, subArgs = .optRagargs(), ...)

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

    ragr: an object of class 'Ragraph' (as defined in the 'Rgraphviz'
          package).

     sub: a "footnote" or subtitle to be added to 'plot(ragr,...)'.  By
          default gives the number of nodes and edges.

 subArgs: ~~Describe 'subArgs' here~~ 

     ...: further arguments passed to 'plot(.)', i.e., the plot method
          for 'Ragraph' objects.

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

     Martin Maechler

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

     'mRagraph', 'Ragraph' ~~~

_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) ## almost the same as
         plotRag(RtrM, subArgs=.optRagargs(adj = 0.5))
                    ## which just gives "<n> nodes with <m> edges"
       }

