makeNodeAttrs           package:Rgraphviz           R Documentation

_m_a_k_e _a _l_i_s_t _o_f _c_h_a_r_a_c_t_e_r _v_e_c_t_o_r_s _t_h_a_t _c_a_n _b_e _u_s_e_d _a_s _a _v_a_l_u_e _f_o_r
_t_h_e _n_o_d_e_A_t_t_r_s _a_r_g_u_m_e_n_t _i_n _a_g_o_p_e_n

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

     make a list of character vectors that can be used as a value for
     the nodeAttrs argument in agopen

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

     makeNodeAttrs(g, label=nodes(g), shape="ellipse", fillcolor="#e0e0e0", ...)

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

       g: graph

   label: character of length either '1' or 'numnodes(g)'. If the
          length is '1', the value is recycled.

   shape: character of length either '1' or 'numnodes(g)'

fillcolor: character of length either '1' or 'numnodes(g)'

     ...: further named arguments that are character vectors of length
          either 1 or numNodes(g)

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

     This function is trivial but convenient.

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

     A list of named character vectors, each of which with length
     'numNodes(g)'.

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

     Wolfgang Huber <huber@ebi.ac.uk>

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

     library(graph)
     g = randomEGraph(letters[1:10], p=0.2)
     makeNodeAttrs(g)

