module_net {MetaNet}R Documentation

Generate a n-modules network

Description

this is just a random generation method, the module number of result is not exactly the module_number, you can change the inter_module_density and intra_module_density to get the proper result.

Usage

module_net(
  module_number = 3,
  n_node_in_module = 30,
  intra_module_density = 0.3,
  inter_module_density = 0.01
)

Arguments

module_number

number of modules

n_node_in_module

number of nodes in each modules

intra_module_density

intra_module_density, recommend bigger than 20*inter_module_density, default:0.3

inter_module_density

inter_module_density, default:0.01

Value

n-modules metanet

See Also

Other module: filter_n_module(), get_community(), get_module_eigen(), get_module(), module_detect(), module_eigen(), summary_module(), to_module_net(), zp_analyse()

Examples

g1 <- module_net()
get_n(g1)
plot(g1, mark_module = TRUE)
plot(g1, coors = g_layout(g1, zoom2 = 20))
plot(g1, coors = g_layout_polyarc(g1, group = "module"))
plot(g1, coors = g_layout_polygon(g1, group = "module"))

[Package MetaNet version 0.1.2 Index]