getDefaultAttrs          package:Rgraphviz          R Documentation

_F_u_n_c_t_i_o_n_s _t_o _g_e_n_e_r_a_t_e _a_n_d _c_h_e_c_k _g_l_o_b_a_l _a_t_t_r_i_b_u_t_e _l_i_s_t_s

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

     The 'getDefaultAttrs' function can be used to generate a default
     global attribute list for Graphviz.  The 'checkAttrs' function can
     be used to verify that such a list is valid for use.

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

     getDefaultAttrs(curAttrs = list(), layoutType = c("dot", "neato",
                      "twopi","circo","fdp"))
     checkAttrs(attrs)

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

curAttrs: Any attributes currently defined

layoutType: The layout method being used

   attrs: An attribute list of graphviz attributes

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

     The 'getDefaultAttrs' function generates a four element list
     (elements being "graph", "cluster", "node" and "edge").  Contained
     in each is another list where the element names correspond to
     attributes and the value is the value for that attribute.  This
     list can be used to set global attributes in Graphviz, and the
     exact list returned by 'getDefaultAttrs' represents the values
     that are used as basic defaults.

     The 'checkAttrs' function can be used to verify that a global
     attribute list is properly formed.

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

     Jeff Gentry

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

     'agopen', 'plot.graph'

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

       z <- getDefaultAttrs()
       checkAttrs(z)

