inetplot              package:inetwork              R Documentation

_N_e_t_w_o_r_k _o_r _G_r_a_p_h _P_l_o_t_t_i_n_g

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

     Given the communities identified by 'icommunity', the plotting
     algorithm places the communities with decreasing community sizes
     along a spiral, in an effort to show the modular structure of the
     network. The vertices belonging to a community are arranged on a
     circle at the designated position on the spiral. The radii of the
     circles are proportional to the community sizes.

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

     inetplot(clusters, theta = 30, shaft = 1, circle = TRUE, singlets = FALSE, 
              labels = TRUE, edges = TRUE, points = TRUE, shadow = TRUE)

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

clusters: an object returned from the network partitioning function
          'icommunity' 

   theta: angle in degree between neighboring communities on the spiral 

   shaft: a scaling factor for the radius of the spiral 

  circle: a logical to indicate whether to position the vertices in a
          community on a circle (default) or a spiral 

singlets: a logical to turn off (default) displaying isolated vertices 

  labels: a logical to show vertex labels (default) or not 

   edges: a logical to draw an edge between connected vertices (by
          default) or not 

  points: a logical to draw dots on vertices (by default) or not 

  shadow: a logical to color the between-community edges in gray
          (default) or black. Within-community edges are in black. 

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

     The Cartesian coordinates of community i on the spiral are given
     by

                  xi = shaft * (i-1) * cos(i*theta)


                  yi = shaft * (i-1) * sin(i*theta)

     where i is the ith largest community in the network. The pitch
     angle theta is set by the argument 'theta'. If 'circle=FALSE', the
     vertices of a community are arranged along a spiral originating
     from the designated position on the backbone spiral. The 'theta'
     and 'shaft' apply to the backbone as well as to the component
     spirals.

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

     Sun-Chong Wang

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

     'icommunity', 'ihierarchy'

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

     ## load example networks
     data(icashflow)

     ## identify the communities within the network
     partite7 <- icommunity(cf7,labelcf7,partite=TRUE)

     ## arrange the communities on a spiral
     inetplot(partite7,shaft=10,circle=TRUE,labels=FALSE)

     ## arrange the community members along component spirals
     inetplot(partite7,shaft=50,circle=FALSE,labels=TRUE,points=FALSE)

     ## show the isolated vertices
     inetplot(partite7,shaft=10,points=FALSE,singlets=TRUE)

