plot                package:relations                R Documentation

_V_i_s_u_a_l_i_z_e _R_e_l_a_t_i_o_n_s

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

     Visualize certain endorelations by plotting a Hasse Diagram of
     their  transitive reduction.

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

     ## S3 method for class 'relation':
     plot(x, attrs = list(graph = list(rankdir = "BT"),
                                             edge = list(arrowsize = "0"),
                                             node = list(shape = "rectangle",
                                                         fixedsize = FALSE)),
                             ...)

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

       x: an R object inheriting from class 'relation'.

   attrs: argument passed to the plot method for class 'graphNEL'.

     ...: Other arguments passed to the 'graphNEL' plot method.

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

     Visualization is currently only provided for either antisymmetric
     or complete transitive endorelations and requires that package
     'Rgraphviz' is available. In case of transitive complete relations
     (preferences), the dual complement is plotted. Note that the
     default settings create a diagram with nodes ordered bottom-up and
     with no arrows.

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

     'relation'

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

     if(require("Rgraphviz")) {
       ## simple example
       plot(as.relation(1 : 5))

       ## inclusion on a power set:
       ps <- 2 ^ set("a", "b", "c")
       inc <- set_outer(ps, set_is_subset)
       plot(relation(incidence = inc))
     }

