renderGraph            package:Rgraphviz            R Documentation

_R_e_n_d_e_r _a _l_a_i_d _o_u_t _g_r_a_p_h _o_b_j_e_c_t

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

     This method uses the 'renderInfo' slot of a graph object to render
     it on a plotting device.

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

     ## S4 method for signature 'graph':
     renderGraph(x, drawNodes, drawEdges, graph.pars)

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

       x: An object derived from class 'graph'

drawNodes: A function that is used for the node rendering. The details
          of its API are still undecided. Defaults to 'renderNodes'

drawEdges: A function that is used for the edge rendering. Defaults to
          'renderNodes'

graph.pars: A list of rendering paramters to use as default

     ...: further arguments

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

     This method can render graph objects that have previously been
     laid out using the function 'layoutGraph'. The details for user
     defined node drawing remain to be decided.

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

     An object derived from class 'graph' with information about the
     coordinates of the nodes in the coordinate system of the plotting
     device added to the 'renderInfo' slot.

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

     Florian Hahne

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

     'layoutGraph'

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

       library(graph)
       set.seed(123)
       V <- letters[1:10]
       M <- 1:4
       g1 <- randomGraph(V, M, 0.8)
       x <- layoutGraph(g1)
       x <- renderGraph(x)
       graphRenderInfo(x,"nativeCoords")

