plot.igraph              package:igraph              R Documentation

_P_l_o_t_t_i_n_g _o_f _g_r_a_p_h_s

_D_e_s_c_r_i_p_t_i_o_n:

     'plot.graph' is able to plot graphs to any R device. It is the
     non-interactive companion of the 'tkplot' function.

_U_s_a_g_e:

     plot.igraph(x, axes=FALSE, xlab="", ylab="", add=FALSE,
           xlim=c(-1,1), ylim=c(-1,1), main="", sub="", ...)

_A_r_g_u_m_e_n_t_s:

       x: The graph to plot.

    axes: Logical, whether to plot axes, defaults to FALSE.

    xlab: The label of the horizontal axis. Defaults to the empty
          string.

    ylab: The label of the vertical axis. Defaults to the empty string.

     add: Logical scalar, whether to add the plot to the current
          device, or delete the device's current contents first.

    xlim: The limits for the horizontal axis, it is unlikely that you
          want to modify this.

    ylim: The limits for the vertical axis, it is unlikely that you
          want to modify this.

    main: Main title.

     sub: Subtitle.

     ...: Additional arguments, passed to 'plot'.

_D_e_t_a_i_l_s:

     One convenient way to plot graphs is to plot with 'tkplot' first,
     handtune the placement of the vertices, query the coordinates by
     the 'tkplot.getcoords' function and use them with 'plot' to plot
     the graph to any R device.

_V_a_l_u_e:

     Returns 'NULL', invisibly.

_A_u_t_h_o_r(_s):

     Gabor Csardi csardi@rmki.kfki.hu

_S_e_e _A_l_s_o:

     'layout' for different layouts, 'igraph.plotting' for the detailed
     description of the plotting parameters and 'tkplot' and 'rglplot'
     for other graph plotting functions.

_E_x_a_m_p_l_e_s:

     g <- graph.ring(10)
     ## Not run: plot(g, layout=layout.kamada.kawai, vertex.color="green")

